1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixed a bug in graph.Graph.Get()

This commit is contained in:
Solomon Hykes 2013-03-21 00:21:32 -07:00
parent 89a140fb75
commit 84e8c4aa1d

View file

@ -42,6 +42,7 @@ func (graph *Graph) Get(id string) (*Image, error) {
if img.Id != id {
return nil, fmt.Errorf("Image stored at '%s' has wrong id '%s'", id, img.Id)
}
img.graph = graph
return img, nil
}