fix error handling 2

This commit is contained in:
Francesco Esposito 2019-03-04 20:10:47 +01:00
parent ceaeadb84b
commit 188821b0f1
1 changed files with 0 additions and 3 deletions

View File

@ -111,9 +111,6 @@ bot.on('/remove', (msg) => {
bot.on('ask.removeDevice', (msg) => {
api.removeDevice(msg.text)
.then((res) => {
if (res instanceof Error) {
throw res;
}
bot.sendMessage(msg.from.id, 'Device Removed');
})
.catch((err) => {