From 26168324fcd1a4fd6ecf68ea1feb6cea1fa0b2e7 Mon Sep 17 00:00:00 2001 From: Jason Franklin Date: Sat, 11 Nov 2017 08:34:29 -0500 Subject: [PATCH] Remove an unnecessary "else" clause --- lib/nerdtree/opener.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/nerdtree/opener.vim b/lib/nerdtree/opener.vim index 9956d74..8efdd7a 100644 --- a/lib/nerdtree/opener.vim +++ b/lib/nerdtree/opener.vim @@ -233,11 +233,13 @@ endfunction " FUNCTION: Opener.open(target) {{{1 function! s:Opener.open(target) + if self._path.isDirectory call self._openDirectory(a:target) - else - call self._openFile() + return endif + + call self._openFile() endfunction " FUNCTION: Opener._openFile() {{{1