From 2ec59e96ebf55be6f6893af60f8a6d8ab2ebe02f Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 12 Jul 2024 22:15:48 +0200 Subject: [PATCH] Return c.JSON --- server/router/handler/auth.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/router/handler/auth.go b/server/router/handler/auth.go index 5ffcf32..a0f384b 100644 --- a/server/router/handler/auth.go +++ b/server/router/handler/auth.go @@ -78,8 +78,7 @@ func HandleLnAuthCallback(sc context.Context) echo.HandlerFunc { ) bail := func(code int, reason string) error { - c.JSON(code, map[string]string{"status": "ERROR", "reason": reason}) - return nil + return c.JSON(code, map[string]string{"status": "ERROR", "reason": reason}) } if err = c.Bind(&query); err != nil {