Skip to content

Commit

Permalink
🔥 remove log fatal as cobra internally handles the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xarunoba committed Jun 2, 2024
1 parent 7d1dce3 commit a8a45db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cli

import (
"log"
"os"
"path/filepath"

Expand All @@ -28,7 +27,5 @@ Integrate with git hooks to automatically change config on checkout.`,
}

func Execute() {
if err := cli.Execute(); err != nil {
log.Fatalf("Error executing ccoco: %v", err)
}
_ = cli.Execute()
}

0 comments on commit a8a45db

Please sign in to comment.