Skip to content

Commit

Permalink
Fix JSON output on analyze (#375)
Browse files Browse the repository at this point in the history
Regular output was not disabled.

Fixes #374
  • Loading branch information
klauspost authored Feb 24, 2025
1 parent f8ad63f commit db05e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func mainAnalyze(ctx *cli.Context) error {
console.Eraseline()
console.Printf("\r"+format, data...)
}
if globalQuiet {
if globalQuiet || globalJSON {
log = nil
}
for _, arg := range args {
Expand Down

0 comments on commit db05e44

Please sign in to comment.