There was an error while loading. Please reload this page.
1 parent d848fe7 commit b9a34c0Copy full SHA for b9a34c0
1 file changed
autoload/ddx/custom.vim
@@ -62,16 +62,11 @@ function s:normalize_key_or_dict(key_or_dict, value) abort
62
let base[a:key_or_dict] = a:value
63
return base
64
endif
65
- return {}
66
-endfunction
67
68
-function s:normalize_string_or_list(string_or_list) abort
69
- if a:string_or_list->type() == v:t_list
70
- return a:string_or_list
71
- elseif a:string_or_list->type() == v:t_string
72
- return [a:string_or_list]
73
- endif
74
- return []
+ throw printf(
+ \ 'ddx#custom: "key_or_dict" must be Dict or String, got %s',
+ \ type(a:key_or_dict)
+ \ )
75
endfunction
76
77
function s:notify(method, args) abort
0 commit comments