From b5574466cd715f1bfde156d5622e6d03c4f8405f Mon Sep 17 00:00:00 2001 From: Adam Hoka Date: Fri, 1 Jun 2018 13:01:57 +0200 Subject: Fix callback validation Signed-off-by: Adam Hoka --- lib/web/imageRouter/imgur.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/web/imageRouter/imgur.js') diff --git a/lib/web/imageRouter/imgur.js b/lib/web/imageRouter/imgur.js index 31d5f55c..2a20002c 100644 --- a/lib/web/imageRouter/imgur.js +++ b/lib/web/imageRouter/imgur.js @@ -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 } -- cgit v1.2.3