simplify graph.Checksums
This commit is contained in:
parent
b5873806d0
commit
19045b530e
5
graph.go
5
graph.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue