move up nested if statement

This commit is contained in:
Alan Hamlett 2017-10-18 19:09:29 -07:00
parent be69fd223d
commit a8a7950f80

View file

@ -337,30 +337,28 @@ let s:VERSION = '6.0.1'
if extra_heartbeats != '' if extra_heartbeats != ''
call jobsend(job, extra_heartbeats . "\n") call jobsend(job, extra_heartbeats . "\n")
endif endif
else elseif s:IsWindows()
if s:IsWindows() if s:is_debug_on
if s:is_debug_on if extra_heartbeats != ''
if extra_heartbeats != '' let stdout = system('(' . s:JoinArgs(cmd) . ')', extra_heartbeats)
let stdout = system('(' . s:JoinArgs(cmd) . ')', extra_heartbeats)
else
let stdout = system('(' . s:JoinArgs(cmd) . ')')
endif
else else
exec 'silent !start /b cmd /c "' . s:JoinArgs(cmd) . ' > nul 2> nul"' let stdout = system('(' . s:JoinArgs(cmd) . ')')
endif endif
else else
if s:is_debug_on exec 'silent !start /b cmd /c "' . s:JoinArgs(cmd) . ' > nul 2> nul"'
if extra_heartbeats != '' endif
let stdout = system(s:JoinArgs(cmd), extra_heartbeats) else
else if s:is_debug_on
let stdout = system(s:JoinArgs(cmd)) if extra_heartbeats != ''
endif let stdout = system(s:JoinArgs(cmd), extra_heartbeats)
else else
if extra_heartbeats != '' let stdout = system(s:JoinArgs(cmd))
let stdout = system(s:JoinArgs(cmd) . ' &', extra_heartbeats) endif
else else
let stdout = system(s:JoinArgs(cmd) . ' &') if extra_heartbeats != ''
endif let stdout = system(s:JoinArgs(cmd) . ' &', extra_heartbeats)
else
let stdout = system(s:JoinArgs(cmd) . ' &')
endif endif
endif endif
endif endif