Skip to content

Commit a9ff7a0

Browse files
committed
fix: more code
1 parent ba80a97 commit a9ff7a0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

autoload/pass/get.vim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ function! pass#get#passphrase() abort
109109
\ string(i + 1) . '/' .
110110
\ string(g:pass_passphrase_verify_retry) . ']' .
111111
\ ' abort'
112+
" All failed, throw exception
112113
throw 'vim-pss: passphrase verify all failed'
113114
else
114115
echo 'passphrase verify failed [' .
@@ -120,10 +121,8 @@ function! pass#get#passphrase() abort
120121
endif
121122
endfor
122123

123-
if exists('s:_get_passphrase')
124-
return s:_get_passphrase()
125-
endif
126-
return ''
124+
" Passed verification
125+
return s:_get_passphrase()
127126
endfunction
128127

129128
" path

0 commit comments

Comments
 (0)