Fix default golanglint-ci errors

These errors show up when simply running `golangci-lint run ./...` on the project.
This commit is contained in:
Matthias Loibl
2025-01-17 17:59:30 +01:00
parent 02b6c413f1
commit ccebcb869f
6 changed files with 14 additions and 10 deletions

View File

@@ -114,8 +114,10 @@ func VerifyAuthResponse(conn *websocket.Conn, ctx context.Context) error {
}
var authResp authResponse
json.Unmarshal(msg, &authResp)
// log.Println(authResp.MsgType)
err = json.Unmarshal(msg, &authResp)
if err != nil {
return err
}
if authResp.MsgType != "auth_ok" {
return ErrInvalidToken
}