Skip to content

Commit

Permalink
use compact way of declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroebe committed Mar 30, 2022
1 parent c778e32 commit 6eedc7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/lsp/semantic.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,10 +828,8 @@ func (e *encoded) Data() []uint32 {
// each semantic token needs five values
// (see Integer Encoding for Tokens in the LSP spec)
x := make([]uint32, 5*len(e.items))
var (
j int
last semItem
)
var j int
var last semItem
for i := 0; i < len(e.items); i++ {
typ, ok := typeMap[e.items[i].typeStr]
if !ok {
Expand Down

0 comments on commit 6eedc7c

Please sign in to comment.