Skip to content

Commit

Permalink
ifshort issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishkovEM committed May 2, 2024
1 parent e17aada commit 1120bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/conn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (c *conn) setState(ctx context.Context, s State) State {
return s
}

//nolint:ifshort //here a pointer is intentionally saved under the lock, because at the time of calling isAvailable it can be overwritten
//nolint:ifshort //here a pointer is intentionally saved under the lock,
func (c *conn) Unban(ctx context.Context) State {
var newState State
c.mtx.RLock()
Expand Down

0 comments on commit 1120bb0

Please sign in to comment.