Skip to content

Commit

Permalink
refactor: Removing useless errcheck for parse flag
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Apr 23, 2024
1 parent b56c8c7 commit 6359ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions cmd/ketchup/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"embed"
"flag"
"fmt"
"log"
"net/http"
"os"

Expand Down Expand Up @@ -79,9 +78,7 @@ func main() {
notifierConfig := notifier.Flags(fs, "notifier")
schedulerConfig := scheduler.Flags(fs, "scheduler")

if err := fs.Parse(os.Args[1:]); err != nil {
log.Fatal(err)
}
_ = fs.Parse(os.Args[1:])

alcotest.DoAndExit(alcotestConfig)

Expand Down
5 changes: 1 addition & 4 deletions cmd/notifier/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"context"
"flag"
"log"
"log/slog"
"os"

Expand Down Expand Up @@ -40,9 +39,7 @@ func main() {
dockerConfig := docker.Flags(fs, "docker")
notifierConfig := notifier.Flags(fs, "notifier")

if err := fs.Parse(os.Args[1:]); err != nil {
log.Fatal(err)
}
_ = fs.Parse(os.Args[1:])

logger.Init(loggerConfig)

Expand Down

0 comments on commit 6359ee1

Please sign in to comment.