simplify graph.Checksums

This commit is contained in:
shin- 2013-05-01 05:08:27 -07:00
parent b5873806d0
commit 19045b530e
1 changed files with 1 additions and 4 deletions

View File

@ -297,10 +297,7 @@ func (graph *Graph) Checksums(repo Repository) ([]map[string]string, error) {
} }
err = img.WalkHistory(func(image *Image) error { err = img.WalkHistory(func(image *Image) error {
checksums[image.Id], err = image.Checksum() checksums[image.Id], err = image.Checksum()
if err != nil { return err
return err
}
return nil
}) })
if err != nil { if err != nil {
return nil, err return nil, err