mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-04 23:22:28 +03:00
Enable intrange linter, and fix warnings
This commit is contained in:
@ -91,7 +91,7 @@ func (p *PatchBuilder) addFileWhole(info *fileInfo) {
|
||||
// add every line index
|
||||
// TODO: add tests and then use lo.Range to simplify
|
||||
info.includedLineIndices = make([]int, lineCount)
|
||||
for i := 0; i < lineCount; i++ {
|
||||
for i := range lineCount {
|
||||
info.includedLineIndices[i] = i
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user