fix: staticcheck and deadcode findings repo-wide, modernize counting loops
This commit is contained in:
@@ -44,7 +44,7 @@ const (
|
||||
)
|
||||
|
||||
func (s *Session) FindFreeWatchpointSlot() int {
|
||||
for i := 0; i < maxWatchpoints; i++ {
|
||||
for i := range maxWatchpoints {
|
||||
if !wpSlots[i] {
|
||||
return i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user