Ver Fonte

Fixed a bug in graph.Graph.Get()

Solomon Hykes há 12 anos atrás
pai
commit
84e8c4aa1d
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      graph/graph.go

+ 1 - 0
graph/graph.go

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