Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Jan 19, 2024
1 parent 8262444 commit 9a0299e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ results_receiver_loop:
case msg := <-messages:
receivedResults++
log.Info("Finished mirroring ", receivedResults, " out of ", len(repos), " repositories.")
combineSlices(msg.Errors, &allErrors)
allErrors = append(allErrors, msg.Errors...)
if lastCloneEnd.Before(msg.LastCloneEnd) {
lastCloneEnd = msg.LastCloneEnd
}
Expand Down
6 changes: 0 additions & 6 deletions cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,3 @@ func stringInSlice(a string, list []string) bool {
}
return false
}

func combineSlices(slice []string, allSlices *[]string) {
for _, s := range slice {
*allSlices = append(*allSlices, s)
}
}

0 comments on commit 9a0299e

Please sign in to comment.