1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00

Fix loop variables warning

This commit is contained in:
Johan Walles 2024-05-18 07:33:53 +02:00
parent 84cf4a9cd9
commit 387fb348c7

View File

@ -72,9 +72,9 @@ func (p *Pager) findFirstHit(startPosition linenumbers.LineNumber, beforePositio
beforePosition = &searchStarts[searchEndIndex]
}
go func() {
go func(i int, searchStart linenumbers.LineNumber) {
findings[i] <- p._findFirstHit(searchStart, beforePosition, backwards)
}()
}(i, searchStart)
}
// Return the first non-nil result