mirror of
https://github.com/restic/restic.git
synced 2026-08-08 14:43:19 +00:00
reduce usages of globalOptions variable
This commit is contained in:
@@ -171,7 +171,7 @@ func runStats(ctx context.Context, opts StatsOptions, gopts GlobalOptions, args
|
||||
}
|
||||
|
||||
if gopts.JSON {
|
||||
err = json.NewEncoder(globalOptions.stdout).Encode(stats)
|
||||
err = json.NewEncoder(gopts.stdout).Encode(stats)
|
||||
if err != nil {
|
||||
return fmt.Errorf("encoding output: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user