Skip to content

Commit

Permalink
fix: importas no-extra-aliases (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jan 20, 2022
1 parent c84de88 commit d52a8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/golinters/importas.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewImportAs(settings *config.ImportAsSettings) *goanalysis.Linter {
lintCtx.Log.Errorf("failed to parse configuration: %v", err)
}

if err := analyzer.Flags.Set("no-extra-aliases", strconv.FormatBool(settings.NoUnaliased)); err != nil {
if err := analyzer.Flags.Set("no-extra-aliases", strconv.FormatBool(settings.NoExtraAliases)); err != nil {
lintCtx.Log.Errorf("failed to parse configuration: %v", err)
}

Expand Down

0 comments on commit d52a8fc

Please sign in to comment.