just return to avoid printing error twice

This commit is contained in:
Robin Olsen
2026-02-04 20:19:11 +01:00
parent 7eadda8e33
commit 640bc45f2c

View File

@@ -1,11 +1,10 @@
package main package main
import ( import (
"context"
"github.com/LazyBachelor/LazyPM/internal/service" "github.com/LazyBachelor/LazyPM/internal/service"
"github.com/LazyBachelor/LazyPM/pkg/cli" "github.com/LazyBachelor/LazyPM/pkg/cli"
"context"
"fmt"
"os"
) )
func main() { func main() {
@@ -16,7 +15,6 @@ func main() {
} }
if err := cli.Run(context.Background(), config); err != nil { if err := cli.Run(context.Background(), config); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err) return
os.Exit(1)
} }
} }