Skip to content

Commit 4d09e50

Browse files
author
nicola
committed
return on callbacks
1 parent 303d624 commit 4d09e50

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎ldp.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ LDP.prototype.readContainerMeta = function (directory, callback) {
8888
if (err) {
8989
data = "";
9090
}
91-
callback(null, data);
91+
return callback(null, data);
9292
});
9393
};
9494

@@ -118,7 +118,7 @@ LDP.prototype.listContainer = function (filename, uri, containerData, callback)
118118
ns.stat('size'),
119119
containerStats.size);
120120
}
121-
next(null, filename);
121+
return next(null, filename);
122122
});
123123
},
124124
// reading directory
@@ -131,7 +131,7 @@ LDP.prototype.listContainer = function (filename, uri, containerData, callback)
131131
}
132132

133133
debug("Files in directory: " + files);
134-
next(null, files);
134+
return next(null, files);
135135
});
136136
},
137137
// Iterate through all the files
@@ -209,7 +209,7 @@ LDP.prototype.listContainer = function (filename, uri, containerData, callback)
209209
metadataGraph.sym(fileSubject),
210210
ns.stat('size'),
211211
fileStats.size);
212-
cb(null);
212+
return cb(null);
213213
});
214214
});
215215
});

0 commit comments

Comments
 (0)