Use 'elseif' to reduce code

This commit is contained in:
Jan Edmund Lazo 2019-08-10 01:09:16 -04:00
parent b7507c20a4
commit b8d4952305

View File

@ -2002,8 +2002,7 @@ function! s:shellesc(arg, ...)
let script = get(opts, 'script', 1)
if shell =~# 'cmd\.exe$'
return s:shellesc_cmd(a:arg, script)
endif
if shell =~# 'powershell\.exe$'
elseif shell =~# 'powershell\.exe$'
return s:shellesc_ps1(a:arg)
endif
return shellescape(a:arg)