mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-08 20:07:12 -06:00
Fix default golanglint-ci errors
These errors show up when simply running `golangci-lint run ./...` on the project.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user