Skip to content

Commit 793df4a

Browse files
use return
1 parent 4213f7d commit 793df4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/trie_prefetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func (sf *subfetcher) clearWakes(existing chan struct{}) {
333333
default:
334334
// Using default here avoids us needing to coordinate [sf.wake] channel
335335
// shutdown
336-
break
336+
return
337337
}
338338
}
339339
}

0 commit comments

Comments
 (0)