Skip to content

Commit 1baefb3

Browse files
committed
review: remove constant
1 parent 4c81aa0 commit 1baefb3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/result/processors/invalid_issue.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import (
77
"github.com/golangci/golangci-lint/pkg/result"
88
)
99

10-
const goFileExtension = ".go"
11-
1210
var _ Processor = InvalidIssue{}
1311

1412
type InvalidIssue struct {
@@ -54,5 +52,5 @@ func (p InvalidIssue) shouldPassIssue(issue *result.Issue) (bool, error) {
5452
}
5553

5654
func isGoFile(name string) bool {
57-
return filepath.Ext(name) == goFileExtension
55+
return filepath.Ext(name) == ".go"
5856
}

0 commit comments

Comments
 (0)