Skip to content

Commit f28f5e9

Browse files
committed
fix missing var. remove unnecessary code
1 parent 1965c8b commit f28f5e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/uploadhandler.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,19 @@ module.exports = function (options) {
3838
async.each(list, _.bind(function(name, cb) {
3939
fs.stat(options.uploadDir() + '/' + name, _.bind(function(err, stats) {
4040
if (!err && stats.isFile()) {
41-
fileInfo = new FileInfo({
41+
var fileInfo = new FileInfo({
4242
name: name,
4343
size: stats.size
4444
});
4545
this.initUrls(fileInfo, function(err) {
4646
files.push(fileInfo);
4747
cb(err);
48-
return;
4948
});
5049
}
5150
else cb(err);
5251
}, this));
5352
}, this),
5453
_.bind(function(err) {
55-
if (err) console.log(err);
5654
this.callback({files: files});
5755
}, this));
5856
}, this));

0 commit comments

Comments
 (0)