forked from engineering/cloudservices
What the fuck is wrong with returning? Aint no need for another unnecessary line
parent
24db3a2513
commit
a283542048
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable consistent-return */
|
|
||||||
import { Message, PrivateChannel } from 'eris';
|
import { Message, PrivateChannel } from 'eris';
|
||||||
import uuid from 'uuid/v4';
|
import uuid from 'uuid/v4';
|
||||||
import { Command } from '../class';
|
import { Command } from '../class';
|
||||||
|
@ -57,7 +56,7 @@ export default class DeleteAccount extends Command {
|
||||||
`,
|
`,
|
||||||
});
|
});
|
||||||
|
|
||||||
deleting.edit(`${this.client.stores.emojis.success} ***Account ${username} has been deleted by Engineer ${message.author.username}#${message.author.discriminator}***`);
|
return deleting.edit(`${this.client.stores.emojis.success} ***Account ${username} has been deleted by Engineer ${message.author.username}#${message.author.discriminator}***`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return this.client.util.handleError(error, message, this);
|
return this.client.util.handleError(error, message, this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue