Fixed a bug in graph.Graph.Get()

Upstream-commit: 84e8c4aa1df8f6f53d1c688a0e2bfc5b4d46adef
Component: engine
This commit is contained in:
Solomon Hykes
2013-03-21 00:21:32 -07:00
parent 49a6499905
commit 062aedd0cc

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
}