aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/Key.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-07-31 14:54:43 +0000
committerMaximilian Krambach <[email protected]>2018-07-31 14:54:43 +0000
commit9d247b7fd5edd11fb5710a057baec671276f5034 (patch)
treeddffaaece87b5b423ca28f0dd007903e487f15dd /lang/js/src/Key.js
parentjs: Making objects inmutable (diff)
downloadgpgme-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 'lang/js/src/Key.js')
-rw-r--r--lang/js/src/Key.js2
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');
};
/**