Skip to content

Commit 2a5b42c

Browse files
authored
prealloc: Use upstream version (#1694)
1 parent 60455b5 commit 2a5b42c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ require (
66
4d63.com/gochecknoglobals v0.0.0-20201008074935-acfc0b28355a
77
github.com/Djarvur/go-err113 v0.0.0-20200511133814-5174e21577d5
88
github.com/OpenPeeDeeP/depguard v1.0.1
9+
github.com/alexkohler/prealloc v0.0.0-20210204145425-77a5b5dd9799
910
github.com/ashanbrown/forbidigo v1.1.0
1011
github.com/ashanbrown/makezero v0.0.0-20201205152432-7b7cdbb3025a
1112
github.com/bombsimon/wsl/v3 v3.1.0
@@ -26,7 +27,6 @@ require (
2627
github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0
2728
github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca
2829
github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770
29-
github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21
3030
github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0
3131
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4
3232
github.com/jgautheron/goconst v0.0.0-20201117150253-ccae5bf973f3

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/prealloc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"sync"
66

7-
"github.com/golangci/prealloc"
7+
"github.com/alexkohler/prealloc/pkg"
88
"golang.org/x/tools/go/analysis"
99

1010
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
@@ -32,7 +32,7 @@ func NewPrealloc() *goanalysis.Linter {
3232

3333
analyzer.Run = func(pass *analysis.Pass) (interface{}, error) {
3434
var res []goanalysis.Issue
35-
hints := prealloc.Check(pass.Files, s.Simple, s.RangeLoops, s.ForLoops)
35+
hints := pkg.Check(pass.Files, s.Simple, s.RangeLoops, s.ForLoops)
3636
for _, hint := range hints {
3737
res = append(res, goanalysis.NewIssue(&result.Issue{
3838
Pos: pass.Fset.Position(hint.Pos),

0 commit comments

Comments
 (0)