]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Remove return after throw
authorSantosh Bandichode <santosh.bandichode@cyberium.info>
Thu, 18 May 2023 19:19:30 +0000 (00:49 +0530)
committerSantosh Bandichode <santosh.bandichode@cyberium.info>
Thu, 18 May 2023 19:19:30 +0000 (00:49 +0530)
autoload/lsp/buffer.vim

index c717e0d8b77aa2aaa16ddad4037869cadde8b45a..8661de397567069f1591efd650c56e1631283220 100644 (file)
@@ -66,7 +66,6 @@ export def BufLspServerGet(bnr: number, feature: string = null_string): dict<any
   if !SupportedCheckFns->has_key(feature)
     # If this happns it is a programming error, and should be fixed in the source code
     :throw $'Error: ''{feature}'' is not a valid feature'
-    return {}
   endif
 
   var SupportedCheckFn = SupportedCheckFns[feature]