Skip to content

Commit cb12581

Browse files
committed
refactor: Removing useless errcheck for parse flag
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
1 parent 0158e2c commit cb12581

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cmd/exas/api.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"errors"
66
"flag"
77
"fmt"
8-
"log"
98
"log/slog"
109
"net/http"
1110
"os"
@@ -47,9 +46,7 @@ func main() {
4746
amqpConfig := amqp.Flags(fs, "amqp")
4847
amqphandlerConfig := amqphandler.Flags(fs, "amqp", flags.NewOverride("Exchange", "fibr"), flags.NewOverride("Queue", "exas"), flags.NewOverride("RoutingKey", "exif_input"))
4948

50-
if err := fs.Parse(os.Args[1:]); err != nil {
51-
log.Fatal(err)
52-
}
49+
_ = fs.Parse(os.Args[1:])
5350

5451
alcotest.DoAndExit(alcotestConfig)
5552

0 commit comments

Comments
 (0)