Skip to content

Commit a6ef221

Browse files
amosonnnickspoons
authored andcommitted
Remove unused Callback
1 parent 2ee68e7 commit a6ef221

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/OmniSharp/actions/codeactions.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ set cpoptions&vim
2121
" \ 'CallbackCount': function('PlaceSign')
2222
" \}
2323
function! OmniSharp#actions#codeactions#Count(...) abort
24-
let opts = a:0 && a:1 isnot 0 ? { 'Callback': a:1 } : {}
2524
if a:0 && type(a:1) == type(function('tr'))
2625
let opts = { 'CallbackCleanup': a:1 }
2726
elseif a:0 && type(a:1) == type({})
2827
let opts = a:1
28+
else
29+
let opts = {}
2930
endif
3031
if g:OmniSharp_server_stdio
3132
let Callback = function('s:CBCountCodeActions', [opts])

0 commit comments

Comments
 (0)