Skip to content

Commit

Permalink
Minor cleanup in verhist command
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Mar 31, 2024
1 parent 92420fe commit 376cf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/verhist/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func run(ctx context.Context, w io.Writer, latest bool, platform, channel string
return verhist.ErrNoVersionsReturned
}
if latest {
_, err := fmt.Fprintf(w, "%s\n", versions[0].Version)
_, err := fmt.Fprintln(w, versions[0].Version)
return err
}
enc := json.NewEncoder(w)
Expand Down

0 comments on commit 376cf9c

Please sign in to comment.