From 6d2c0959766ef5e26a3c30c83a908e4402b9b43c Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 27 Nov 2018 22:01:14 -0700 Subject: [PATCH] Fix cb --- core/user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/user.js b/core/user.js index 307dbacc..0121133a 100644 --- a/core/user.js +++ b/core/user.js @@ -473,7 +473,9 @@ module.exports = class User { return this.removeProperty(name, next); }, err => { - return cb(err); + if(cb) { + return cb(err); + } }); }