Actually return something

This commit is contained in:
abalabahaha
2016-06-03 19:16:09 -07:00
parent 6cd0561014
commit 293f416e15
2 changed files with 2 additions and 2 deletions

View File

@@ -672,7 +672,7 @@ var InternalClient = (function () {
if (!this.user.bot) {
return this.apiRequest("post", _Constants.Endpoints.LOGOUT, true).then(disconnect);
} else {
disconnect();
return disconnect();
}
};

View File

@@ -571,7 +571,7 @@ export default class InternalClient {
return this.apiRequest("post", Endpoints.LOGOUT, true)
.then(disconnect);
} else {
disconnect();
return disconnect();
}
}