Skip to content

Commit 3b91c63

Browse files
committed
chore: minor changes
1 parent 45bcaeb commit 3b91c63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/goformatters/analyzer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ func NewAnalyzer(logger logutils.Log, doc string, formatter Formatter) *analysis
2121
Doc: doc,
2222
Run: func(pass *analysis.Pass) (any, error) {
2323
for _, file := range pass.Files {
24-
position, isGoFiles := goanalysis.GetGoFilePosition(pass, file)
25-
if !isGoFiles {
24+
position, isGoFile := goanalysis.GetGoFilePosition(pass, file)
25+
if !isGoFile {
2626
continue
2727
}
2828

pkg/goformatters/internal/commons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package internal
22

33
import "github.com/golangci/golangci-lint/pkg/logutils"
44

5-
// FormatterLogger must be use only when the context logger is not available.
5+
// FormatterLogger must be used only when the context logger is not available.
66
var FormatterLogger = logutils.NewStderrLog(logutils.DebugKeyFormatter)

0 commit comments

Comments
 (0)