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); + } }); }