Skip to content

Commit 168a8df

Browse files
committed
review
1 parent ed47d6f commit 168a8df

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pkg/config/linters_settings.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,7 @@ type UnconvertSettings struct {
909909
}
910910

911911
type UnparamSettings struct {
912-
CheckExported bool `mapstructure:"check-exported"`
913-
Algo string `mapstructure:"algo"`
912+
CheckExported bool `mapstructure:"check-exported"`
914913
}
915914

916915
type UnusedSettings struct {

pkg/lint/linter/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ func (lc *Config) WithGroups(names ...string) *Config {
9090
}
9191

9292
func (lc *Config) FromGroup(name string) bool {
93-
if lc.Groups == nil {
94-
return false
95-
}
96-
9793
_, ok := lc.Groups[name]
9894
return ok
9995
}

0 commit comments

Comments
 (0)