Return c.JSON
This commit is contained in:
parent
2b8ab8b51c
commit
2ec59e96eb
|
@ -78,8 +78,7 @@ func HandleLnAuthCallback(sc context.Context) echo.HandlerFunc {
|
||||||
)
|
)
|
||||||
|
|
||||||
bail := func(code int, reason string) error {
|
bail := func(code int, reason string) error {
|
||||||
c.JSON(code, map[string]string{"status": "ERROR", "reason": reason})
|
return c.JSON(code, map[string]string{"status": "ERROR", "reason": reason})
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = c.Bind(&query); err != nil {
|
if err = c.Bind(&query); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue