Fix jsdoc typos and remove unnecessary comment

This commit is contained in:
toby 2017-03-08 11:55:26 -05:00
parent 67f94df060
commit 213de7a941

View file

@ -16,7 +16,7 @@ var PGP = {
* Encrypts the input using PGP. * Encrypts the input using PGP.
* *
* @param {string} input - plaintext to encrypt * @param {string} input - plaintext to encrypt
* @param {function} args * @param {Object[]} args
* @returns {string} * @returns {string}
*/ */
runEncrypt: function (plaintext, args) { runEncrypt: function (plaintext, args) {
@ -32,10 +32,8 @@ var PGP = {
reject("Failed to read public key", error); reject("Failed to read public key", error);
} }
// Timeout is so that UI can update before openpgp blocks thread
openpgp.encrypt(options) openpgp.encrypt(options)
.then(function(ciphertext) { .then(function(ciphertext) {
console.log(ciphertext);
resolve(ciphertext.data); resolve(ciphertext.data);
}) })
.catch(function(error) { .catch(function(error) {
@ -49,7 +47,7 @@ var PGP = {
* Decrypts the input using PGP. * Decrypts the input using PGP.
* *
* @param {string} input - ciphertext to decrypt * @param {string} input - ciphertext to decrypt
* @param {function} args * @param {Object[]} args
* @returns {string} * @returns {string}
*/ */
runDecrypt: function (input, args) { runDecrypt: function (input, args) {