Skip to content

Commit

Permalink
Use 'elseif' to reduce code
Browse files Browse the repository at this point in the history
  • Loading branch information
janlazo committed Aug 10, 2019
1 parent b7507c2 commit b8d4952
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8d4952

Please sign in to comment.