password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 6a2dc51b5d84c4bf76664cab5afed066cb9b48db
parent 7d74e9d32c78fdfe9c02ba2b5b86b6b9bb3c8b88
Author: Svend Sorensen <svend@ciffer.net>
Date:   Fri, 16 May 2014 13:46:46 -0700

emacs: Use when instead of if/progn

Diffstat:
Mcontrib/emacs/password-store.el | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el @@ -164,11 +164,10 @@ Returns the first line of the password data." (defun password-store-clear () "Clear password in kill ring." (interactive) - (if password-store-kill-ring-pointer - (progn - (setcar password-store-kill-ring-pointer "") - (setq password-store-kill-ring-pointer nil) - (message "Password cleared.")))) + (when password-store-kill-ring-pointer + (setcar password-store-kill-ring-pointer "") + (setq password-store-kill-ring-pointer nil) + (message "Password cleared."))) ;;;###autoload (defun password-store-copy (entry)