Fix callback validation

Signed-off-by: Adam Hoka <hoka.adam@nexogen.hu>
This commit is contained in:
Adam Hoka
2018-06-01 13:01:57 +02:00
parent 65544f9a18
commit b5574466cd
4 changed files with 7 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ exports.uploadImage = function (imagePath, callback) {
}
if (!callback || typeof callback !== 'function') {
callback(new Error('Callback has to be a function'), null)
logger.error('Callback has to be a function')
return
}