summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-08 08:43:51 +0100
committerw0rp <devw0rp@gmail.com>2017-08-08 08:43:51 +0100
commit16772298ab555119223c50a7a8bf4800c436e2f9 (patch)
tree27c115958064e011c53e536eea35fc8ed0d5c310 /autoload
parenta535d07f2897d36dad3b22d28c1c6cd16b7e385e (diff)
downloadale-16772298ab555119223c50a7a8bf4800c436e2f9.zip
Simplify some comparisons
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/list.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim
index 1311bef3..4487e951 100644
--- a/autoload/ale/list.vim
+++ b/autoload/ale/list.vim
@@ -17,8 +17,7 @@ function! s:ShouldOpen(buffer) abort
let l:val = ale#Var(a:buffer, 'open_list')
let l:saved = getbufvar(a:buffer, 'ale_save_event_fired', 0)
- return (type(l:val) == type(1) && l:val == 1)
- \ || (type(l:val) == type('') && l:val is# 'on_save' && l:saved)
+ return l:val is 1 || (l:val is# 'on_save' && l:saved)
endfunction
function! ale#list#SetLists(buffer, loclist) abort