diff --git a/js/id/graph/graph.js b/js/id/graph/graph.js index 992c1d7fe..41000fd11 100644 --- a/js/id/graph/graph.js +++ b/js/id/graph/graph.js @@ -32,8 +32,7 @@ iD.Graph.prototype = { replace: function(entity, annotation) { var entities = _.clone(this.entities); entities[entity.id] = entity; - var g = iD.Graph(entities, annotation); - return g; + return iD.Graph(entities, annotation); }, remove: function(entity, annotation) {