mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-19 13:35:52 +00:00
Use append()
This commit is contained in:
parent
3b9a42cb73
commit
1a5c6c68c6
1 changed files with 2 additions and 3 deletions
|
|
@ -116,9 +116,8 @@ func indexHandler(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
if len(commits) > 0 {
|
||||
n := len(digest.RepositoryDigests)
|
||||
digest.RepositoryDigests = digest.RepositoryDigests[0 : n+1]
|
||||
digest.RepositoryDigests[n] = RepositoryDigest{&repos[i], commits}
|
||||
digest.RepositoryDigests = append(
|
||||
digest.RepositoryDigests, RepositoryDigest{&repos[i], commits})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue