From b8d4952305a505702d4126efd9b22435a1535fd4 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 10 Aug 2019 01:09:16 -0400 Subject: [PATCH] Use 'elseif' to reduce code --- plug.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index e152b9f..8984671 100644 --- a/plug.vim +++ b/plug.vim @@ -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)