completion (improvement): remove if statement

pull/1850/head
Gurkirat Singh 2021-03-12 13:59:14 +05:30 committed by Noah Gorny
parent ab011cd9ba
commit 035fc920ad
1 changed files with 38 additions and 40 deletions

View File

@ -1,6 +1,5 @@
# shellcheck shell=bash # shellcheck shell=bash
if _binary_exists ngrok; then
__ngrok_completion() { __ngrok_completion() {
local prev=$(_get_pword) local prev=$(_get_pword)
local curr=$(_get_cword) local curr=$(_get_cword)
@ -42,4 +41,3 @@ if _binary_exists ngrok; then
} }
complete -F __ngrok_completion ngrok complete -F __ngrok_completion ngrok
fi