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:
parent
84cf4a9cd9
commit
387fb348c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user