REST cleanup. Idiomatic naming of datastore funcs

This commit is contained in:
Brad Rydzewski
2015-04-14 22:04:38 -07:00
parent 1ad5e3f597
commit 0c3f9e5bde
28 changed files with 458 additions and 471 deletions

View File

@@ -59,9 +59,9 @@ func GetBadge(c *gin.Context) {
//
// TODO(bradrydzewski) this will not return in-progress builds, which it should
func GetCC(c *gin.Context) {
ds := ToDatastore(c)
store := ToDatastore(c)
repo := ToRepo(c)
last, err := ds.GetBuildLast(repo.FullName)
last, err := store.BuildLast(repo.FullName)
if err != nil {
c.Fail(404, err)
return