Skip to content

Commit

Permalink
chore(nesutil): Change strings.Split to strings.SplitSeq
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Feb 17, 2025
1 parent e50bbda commit cc522ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nesutil/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var version = ""
func main() {
rootCmd := root.New(options.WithVersion(version))
if err := rootCmd.Execute(); err != nil {
for _, s := range strings.Split(err.Error(), "\n") {
for s := range strings.SplitSeq(err.Error(), "\n") {
slog.Error(s)
}
os.Exit(1)
Expand Down

0 comments on commit cc522ba

Please sign in to comment.