From 8e8488a8e67eb76ca0d2d85a1c5a19eafbe153e3 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Sat, 30 Jun 2018 14:02:40 +0200 Subject: [PATCH] Lets be explicit about the error --- src/apptask.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/apptask.js b/src/apptask.js index 89cfea16b..3e17a1ee7 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -277,8 +277,7 @@ function registerSubdomain(app, overwrite, callback) { }); }, function (error, result) { if (error || result instanceof Error) return callback(error || result); - - callback(); + callback(null); }); }); } @@ -303,7 +302,7 @@ function unregisterSubdomain(app, location, domain, callback) { }); }, function (error, result) { if (error || result instanceof Error) return callback(error || result); - callback(); + callback(null); }); }); }