chore: fix lint error

This commit is contained in:
Bo-Yi Wu
2022-07-20 14:42:22 +08:00
committed by Jason Song
parent e54de37242
commit 827bd953e7
3 changed files with 34 additions and 32 deletions

View File

@ -188,8 +188,10 @@ func runDaemon(ctx context.Context, input *Input) func(cmd *cobra.Command, args
default:
}
conn.SetReadDeadline(time.Now().Add(timeout))
conn.SetPongHandler(func(string) error { conn.SetReadDeadline(time.Now().Add(timeout)); return nil })
_ = conn.SetReadDeadline(time.Now().Add(timeout))
conn.SetPongHandler(func(string) error {
return conn.SetReadDeadline(time.Now().Add(timeout))
})
_, message, err := conn.ReadMessage()
if err != nil {