diff options
author | Maximilian Krambach <[email protected]> | 2018-07-31 14:54:43 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-07-31 14:54:43 +0000 |
commit | 9d247b7fd5edd11fb5710a057baec671276f5034 (patch) | |
tree | ddffaaece87b5b423ca28f0dd007903e487f15dd /lang/js/src/Key.js | |
parent | js: Making objects inmutable (diff) | |
download | gpgme-9d247b7fd5edd11fb5710a057baec671276f5034.tar.gz gpgme-9d247b7fd5edd11fb5710a057baec671276f5034.zip |
js: Fix Key.hasSecret answer
--
* The comparision result between Keyring and Keyring with secrets was
set to the wrong Object which was not returned at all.
Diffstat (limited to '')
-rw-r--r-- | lang/js/src/Key.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/src/Key.js b/lang/js/src/Key.js index f431a283..88c49d3f 100644 --- a/lang/js/src/Key.js +++ b/lang/js/src/Key.js @@ -74,7 +74,7 @@ export class GPGME_Key { * @returns {Boolean} If the Key has a secret subkey. */ this.hasSecret= function (){ - return this.get('hasSecret', true); + return this.get('hasSecret'); }; /** |