Rename `results1` to `parsedAnnotations`

parent 90518f1c
...@@ -60,16 +60,15 @@ AnnotationSync.prototype.sync = function(annotations) { ...@@ -60,16 +60,15 @@ AnnotationSync.prototype.sync = function(annotations) {
this.bridge.call('sync', annotations, (function(_this) { this.bridge.call('sync', annotations, (function(_this) {
return function(err, annotations) { return function(err, annotations) {
var i; var i;
var results1; var parsedAnnotations = [];
if (annotations === null) { if (annotations === null) {
annotations = []; annotations = [];
} }
results1 = [];
for (i = 0; i < annotations.length; i++) { for (i = 0; i < annotations.length; i++) {
results1.push(_this._parse(annotations[i])); parsedAnnotations.push(_this._parse(annotations[i]));
} }
return results1; return parsedAnnotations;
}; };
})(this)); })(this));
return this; return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment