Browse Source

bitwarden-unlock: pass should be string not nil

This prevents (bitwarden-unlock) from failing with a type failure from (make-process) when the user hasn't defined (bitwarden-automatic-unlock).
Gaelan D'costa 6 years ago
parent
commit
fccf5121c6
1 changed files with 3 additions and 2 deletions
  1. 3 2
      bitwarden.el

+ 3 - 2
bitwarden.el

@@ -198,8 +198,9 @@ since that could be set yet could be expired or incorrect.
 If run interactively PRINT-MESSAGE gets set and messages are
 printed to minibuffer."
   (interactive "p")
-  (let ((pass (when bitwarden-automatic-unlock
-                (funcall bitwarden-automatic-unlock))))
+  (let ((pass (if bitwarden-automatic-unlock
+                  (funcall bitwarden-automatic-unlock)
+                "")))
     (bitwarden--raw-unlock (list "unlock" pass) print-message)))
 
 ;;;###autoload