We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8641ed + 40b7e88 commit 9117773Copy full SHA for 9117773
autoload/vital/__vital__/Data/Optional.vim
@@ -74,7 +74,7 @@ function! s:get_unsafe(o) abort
74
endfunction
75
76
function! s:get_or(o, alt) abort
77
- return get(a:o, s:SOME_KEY, a:alt())
+ return has_key(a:o, s:SOME_KEY) ? a:o[s:SOME_KEY] : a:alt()
78
79
80
function! s:has(o, type) abort
0 commit comments