Skip to content

Commit

Permalink
fix: linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Dec 4, 2024
1 parent 71500b2 commit fd7fba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/artifact/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err
log.Info("Writing the default config to trivy-default.yaml...")

hiddenFlags := flag.HiddenFlags()
allFlags := map[string]any{}
allFlags := make(map[string]any)
// Viper does not have the ability to remove flags.
// So we only save the necessary flags and set these flags after viper.Reset
for _, k := range viper.AllKeys() {
Expand Down

0 comments on commit fd7fba8

Please sign in to comment.