From 23429816431227be6ce5dfd8077427a3605856e4 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sun, 15 Dec 2024 01:49:25 -0800 Subject: [PATCH] submissions: fix null pointer deref --- pkg/cmds/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmds/serve.go b/pkg/cmds/serve.go index af16082..40ce732 100644 --- a/pkg/cmds/serve.go +++ b/pkg/cmds/serve.go @@ -134,7 +134,7 @@ func serve(ctx *cli.Context) error { Nats: js, } - srv2, err := internal.NewServer(svc2, nil, internal.WithPathPrefix("/v1")) + srv2, err := internal.NewServer(svc2, internal.WithPathPrefix("/v1")) if err != nil { log.WithError(err).Fatal("failed to initialize api server") }