Skip to content

Commit

Permalink
Refactor file output in rootCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Mar 9, 2024
1 parent f89dbaf commit 7fa6044
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,9 @@ var rootCmd = &cobra.Command{
if _, err := f.Write(min); err != nil {
return err
}
if _, err := fmt.Fprintln(os.Stdout, path); err != nil {
return err
}
fmt.Println(path)
} else {
if _, err := os.Stdout.Write(min); err != nil {
return err
}
fmt.Println(string(min))
}

return nil
Expand Down

0 comments on commit 7fa6044

Please sign in to comment.