Skip to content

Commit

Permalink
#28 fox linter warn
Browse files Browse the repository at this point in the history
  • Loading branch information
ebirukov committed Jan 15, 2024
1 parent 416b51b commit add0c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/octopus/box.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func Box(ctx context.Context, shard int, instType activerecord.ShardInstanceType
return nil, fmt.Errorf("error from connectionCacher: %w", err)
}

box, ok := conn.(*Connection)
if !ok {
box, ex := conn.(*Connection)
if !ex {
return nil, fmt.Errorf("invalid connection type %T, want *octopus.Connection", conn)
}

Expand Down

0 comments on commit add0c4f

Please sign in to comment.