Skip to content

Commit ab13528

Browse files
samikshya-dbclaude
andcommitted
Fix SA9003 lint error: Add comment to empty default case
- Add explanatory comment to empty default case in connection.go:340 - This fixes the staticcheck SA9003 warning about empty branch - The select statement uses default as non-blocking context check Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 4b53634 commit ab13528

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ func (c *conn) executeStatement(ctx context.Context, query string, args []driver
338338

339339
select {
340340
default:
341+
// Non-blocking check: continue if context not done
341342
case <-ctx.Done():
342343
newCtx := driverctx.NewContextFromBackground(ctx)
343344
// in case context is done, we need to cancel the operation if necessary

0 commit comments

Comments
 (0)