Skip to content

Commit

Permalink
flux diff artifact: Use cmd.Print() instead of fmt.Print().
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Forster <[email protected]>
  • Loading branch information
octo committed Aug 8, 2024
1 parent c95451e commit e4ff4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/flux/diff_artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func diffArtifactCmdRun(cmd *cobra.Command, args []string) error {
}

if !diffArtifactArgs.brief {
fmt.Print(diff)
cmd.Print(diff)
}

return fmt.Errorf("%q and %q: %w", ociURL, diffArtifactArgs.path, ErrDiffArtifactChanged)
Expand Down

0 comments on commit e4ff4df

Please sign in to comment.