mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
only send back err
This commit is contained in:
@@ -72,7 +72,9 @@ image.normalise = function(path, extension, callback) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
image.write(path + '.png', callback);
|
||||
image.write(path + '.png', function(err) {
|
||||
callback(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user