Skip to content

Commit 9550432

Browse files
committed
chore: lint
1 parent b3b74bc commit 9550432

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/config/linters_settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ type MustTagSettings struct {
717717
}
718718

719719
type NakedretSettings struct {
720-
MaxFuncLines int `mapstructure:"max-func-lines"`
720+
MaxFuncLines uint `mapstructure:"max-func-lines"`
721721
}
722722

723723
type NestifSettings struct {

pkg/golinters/nakedret/nakedret.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
)
1010

1111
func New(settings *config.NakedretSettings) *goanalysis.Linter {
12-
var maxLines int
12+
var maxLines uint
1313
if settings != nil {
1414
maxLines = settings.MaxFuncLines
1515
}
1616

17-
a := nakedret.NakedReturnAnalyzer(uint(maxLines))
17+
a := nakedret.NakedReturnAnalyzer(maxLines)
1818

1919
return goanalysis.NewLinter(
2020
a.Name,

0 commit comments

Comments
 (0)