Make conditional style consistent with codebase

This commit is contained in:
Jonny Bylsma
2019-06-03 17:50:50 -04:00
committed by Andy Stewart
parent 8696c880df
commit 25f3c56335

View File

@@ -133,7 +133,7 @@ endfunction
function! s:get_hl(group, what, mode) abort
let r = synIDattr(synIDtrans(hlID(a:group)), a:what, a:mode)
if index(['', '-1'], r) >= 0
if empty(r) || r == -1
return 'NONE'
endif
return r