Skip to content

Commit

Permalink
fix: unexpect output in format byte slice (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
healthjyk committed Apr 18, 2024
1 parent be9c75a commit 691640b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func write(spec *v1.Spec, output string, out io.Writer) error {

switch {
case output == "":
_, err := fmt.Fprintln(out, specStr)
_, err = fmt.Fprintln(out, string(specStr))
return err
default:
return dumpToFile(string(specStr), output)
Expand Down

0 comments on commit 691640b

Please sign in to comment.