Improve code readability #2

+ Improve syntax
This commit is contained in:
Mikołaj Pęczkowski 2024-06-16 15:28:12 +02:00
parent 68636d5e64
commit 29d40969c2
3 changed files with 27 additions and 24 deletions

View file

@ -54,8 +54,8 @@ func findNumberOfCommitDiffs(srcCommit *object.Commit, dstCommit *object.Commit)
return diffRange, false
}
baseCommitHashes := []string{}
destCommitHashes := []string{}
var baseCommitHashes []string
var destCommitHashes []string
// Try to find all differences, limit only to five last changes to avoid reading whole repository at once
for {