From 8c5978f193d4bb6443a3bb47dbc1b58366632fe3 Mon Sep 17 00:00:00 2001 From: awh6al Date: Sun, 22 Dec 2019 22:32:55 +0000 Subject: [PATCH] internal/lsp: make golint happy This PR fixes internal/lsp/fuzzy/matcher.go:230:4: should replace skipPenalty += 1 with skipPenalty++ . Change-Id: I7d5b6c20e25503ea266e26783e68ad92fd8b36e0 GitHub-Last-Rev: 36fd2c25232f593f905051692e84d8c634fb7a46 GitHub-Pull-Request: golang/tools#194 Reviewed-on: https://go-review.googlesource.com/c/tools/+/212400 Reviewed-by: Rebecca Stambler Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot --- internal/lsp/fuzzy/matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/fuzzy/matcher.go b/internal/lsp/fuzzy/matcher.go index 0fbe5b3146..f39f7ef65e 100644 --- a/internal/lsp/fuzzy/matcher.go +++ b/internal/lsp/fuzzy/matcher.go @@ -227,7 +227,7 @@ func (m *Matcher) computeScore(candidate string, candidateLower []byte) int { var skipPenalty int if i == 1 || (i-1) == lastSegStart { // Skipping the start of first or last segment. - skipPenalty += 1 + skipPenalty++ } for j := 0; j <= pattLen; j++ {