mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-27 15:07:43 +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
|
return
|
||||||
}
|
}
|
||||||
if len(commits) > 0 {
|
if len(commits) > 0 {
|
||||||
n := len(digest.RepositoryDigests)
|
digest.RepositoryDigests = append(
|
||||||
digest.RepositoryDigests = digest.RepositoryDigests[0 : n+1]
|
digest.RepositoryDigests, RepositoryDigest{&repos[i], commits})
|
||||||
digest.RepositoryDigests[n] = RepositoryDigest{&repos[i], commits}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue