Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
clean up one line
Browse files Browse the repository at this point in the history
  • Loading branch information
stamblerre committed Oct 16, 2018
1 parent 7b3487b commit 4d2079a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/suggest/cursorcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ func deduceCursorContext(file []byte, cursor int) (cursorContext, string, string

// See if we have a partial identifier to work with.
var partial string
tok := iter.token()
switch {
switch tok := iter.token(); {
case tok.tok.IsKeyword(), tok.tok == token.IDENT:
// we're '<whatever>.<ident>'
// parse <ident> as Partial and figure out decl
Expand Down

0 comments on commit 4d2079a

Please sign in to comment.