Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Aug 27, 2024
1 parent b988f4d commit 6a6e2ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/handler/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ func (h *handler) handleTextDocumentCompletion(ctx context.Context, reply jsonrp
// FIXME loop over all names in case there's multiple assignement
if v.Names[0].Name == selectors[0] {
if len(v.Values) > 0 {
// related test-cases:
// - TestScripts/document_completion_local_struct_global_var
switch vs := v.Values[0].(type) {
switch vs := v.Values[0].(type) { //nolint:gocritic
case *ast.CompositeLit:
// related test-cases:
// - TestScripts/document_completion_local_struct_global_var
typ := nodeName(vs.Type)
syms = symbolFinder{h.currentPkg.Symbols}.find(append([]string{typ}, selectors[1:]...))
}
Expand Down

0 comments on commit 6a6e2ae

Please sign in to comment.