mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 19:33:50 -05:00
remove some redundant code
This commit is contained in:
@@ -1739,13 +1739,7 @@ endfunction
|
|||||||
function! s:Path.delete()
|
function! s:Path.delete()
|
||||||
if self.isDirectory
|
if self.isDirectory
|
||||||
|
|
||||||
let cmd = ""
|
let cmd = g:NERDTreeRemoveDirCmd . self.strForOS(1)
|
||||||
if s:running_windows
|
|
||||||
"if we are runnnig windows then put quotes around the pathstring
|
|
||||||
let cmd = g:NERDTreeRemoveDirCmd . self.strForOS(1)
|
|
||||||
else
|
|
||||||
let cmd = g:NERDTreeRemoveDirCmd . self.strForOS(1)
|
|
||||||
endif
|
|
||||||
let success = system(cmd)
|
let success = system(cmd)
|
||||||
|
|
||||||
if v:shell_error != 0
|
if v:shell_error != 0
|
||||||
|
|||||||
Reference in New Issue
Block a user