This commit is contained in:
Ethan Koenig 2017-05-12 04:09:53 -04:00 committed by Bo-Yi Wu
parent 5ca3046da6
commit 9e627af9a4
3 changed files with 9 additions and 10 deletions

View File

@ -301,7 +301,7 @@ func (repo *Repository) innerAPIFormat(mode AccessMode, isParent bool) *api.Repo
Description: repo.Description,
Private: repo.IsPrivate,
Empty: repo.IsBare,
Size: int(repo.Size/1024),
Size: int(repo.Size / 1024),
Fork: repo.IsFork,
Parent: parent,
Mirror: repo.IsMirror,

View File

@ -81,4 +81,3 @@ func IsReadmeFile(name string) bool {
}
return name[:7] == "readme."
}