Skip to content

Commit

Permalink
fix: importas no-extra-aliases (golangci#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and SeigeC committed Apr 4, 2023
1 parent 8087d82 commit 87436ee
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 87436ee

Please sign in to comment.