Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
D3Hunter committed Nov 1, 2023
1 parent 4b299c1 commit 4b766c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions br/pkg/lightning/backend/local/localhelper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,8 @@ func (c *testSplitClient) ScanRegions(ctx context.Context, key, endKey []byte, l
c.mu.Lock()
defer c.mu.Unlock()

select {
case <-ctx.Done():
return nil, ctx.Err()
default:
if err := ctx.Err(); err != nil {
return nil, err
}

if c.hook != nil {
Expand Down

0 comments on commit 4b766c8

Please sign in to comment.