mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 05:34:02 +03:00
Update to the latest golangci-lint
This commit is contained in:
@@ -56,7 +56,7 @@ func (c *circuitBreakerDialer) doClosed(ctx context.Context,
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
if conn != nil {
|
||||
conn.Close()
|
||||
conn.Close() //nolint: errcheck
|
||||
}
|
||||
|
||||
return nil, ctx.Err() //nolint: wrapcheck
|
||||
@@ -93,7 +93,7 @@ func (c *circuitBreakerDialer) doHalfOpened(ctx context.Context,
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
if conn != nil {
|
||||
conn.Close()
|
||||
conn.Close() //nolint: errcheck
|
||||
}
|
||||
|
||||
return nil, ctx.Err() //nolint: wrapcheck
|
||||
|
||||
Reference in New Issue
Block a user