Fixed last release file issue

trimmed logs in tables some more
This commit is contained in:
Tim Shannon
2016-04-25 21:39:11 +00:00
parent 6bca816d11
commit ddbcb8fc6e
3 changed files with 5 additions and 5 deletions

View File

@ -121,7 +121,7 @@ func (ds *Store) LastRelease() (*Release, error) {
err := ds.bolt.View(func(tx *bolt.Tx) error {
c := tx.Bucket([]byte(bucketReleases)).Cursor()
_, v := c.Last()
_, v := c.First() // this is confusing
if v == nil {
return ErrNotFound
}