refactor: Prefer single quoted strings

This commit is contained in:
Caleb Maclennan
2023-02-21 16:11:54 +03:00
parent 425bdc51fd
commit 8e6d5f7afd
2 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ command! -bar IndentGuidesDisable call s:IndentGuidesDisable()
"
function s:InitVariable(var, value)
if !exists(a:var)
if type(a:value) == type("")
if type(a:value) == type('')
exec 'let ' . a:var . ' = ' . "'" . a:value . "'"
else
exec 'let ' . a:var . ' = ' . a:value