mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
simplify graph.Checksums
This commit is contained in:
parent
b5873806d0
commit
19045b530e
1 changed files with 1 additions and 4 deletions
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…
Add table
Reference in a new issue