mirror of
https://github.com/golang/go
synced 2024-11-18 15:24:41 -07:00
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 <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
f13409bbeb
commit
8c5978f193
@ -227,7 +227,7 @@ func (m *Matcher) computeScore(candidate string, candidateLower []byte) int {
|
|||||||
var skipPenalty int
|
var skipPenalty int
|
||||||
if i == 1 || (i-1) == lastSegStart {
|
if i == 1 || (i-1) == lastSegStart {
|
||||||
// Skipping the start of first or last segment.
|
// Skipping the start of first or last segment.
|
||||||
skipPenalty += 1
|
skipPenalty++
|
||||||
}
|
}
|
||||||
|
|
||||||
for j := 0; j <= pattLen; j++ {
|
for j := 0; j <= pattLen; j++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user