Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Dec 9, 2024
1 parent d25ba82 commit 102ff72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mixing/mixclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ func (d *deadlines) shift() {
d.recvCM = d.recvCM.Add(timeoutDuration)
}

func (d *deadlines) restart() {
d.start(d.recvCM)
}

// peerRunState describes the peer state that changes across different
// sessions/runs.
type peerRunState struct {
Expand Down Expand Up @@ -1090,7 +1086,9 @@ func (c *Client) pairSession(ctx context.Context, ps *pairedSessions, prs []*wir
return
}
requirePeerAgreement = true
err = nil
// err = nil would be an ineffectual assignment here;
// blamed is non-nil and the following if block will
// always be entered.
}

if blamed != nil || errors.As(err, &blamed) {
Expand Down

0 comments on commit 102ff72

Please sign in to comment.