refactor(*): remove unused exception variables (#193)

This commit is contained in:
Almeida 2021-05-06 19:23:47 +01:00 committed by GitHub
parent 38ab38645b
commit a4a7eb41b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 35 additions and 35 deletions

View file

@ -25,7 +25,7 @@ export const AboutCmd = utilityCmd({
try {
const lcl = new LCL(rootDir);
lastCommit = await lcl.getLastCommit();
} catch (e) {} // tslint:disable-line:no-empty
} catch {} // tslint:disable-line:no-empty
let lastUpdate;
let version;

View file

@ -32,7 +32,7 @@ export const NicknameCmd = utilityCmd({
await args.member.edit({
nick: args.nickname,
});
} catch (e) {
} catch {
msg.channel.createMessage(errorMessage("Failed to change nickname"));
return;
}

View file

@ -23,7 +23,7 @@ export const NicknameResetCmd = utilityCmd({
await args.member.edit({
nick: "",
});
} catch (e) {
} catch {
msg.channel.createMessage(errorMessage("Failed to reset nickname"));
return;
}

View file

@ -38,7 +38,7 @@ export const VcdisconnectCmd = utilityCmd({
await args.member.edit({
channelID: null,
});
} catch (e) {
} catch {
sendErrorMessage(pluginData, msg.channel, "Failed to disconnect member");
return;
}

View file

@ -75,7 +75,7 @@ export const VcmoveCmd = utilityCmd({
await args.member.edit({
channelID: channel.id,
});
} catch (e) {
} catch {
sendErrorMessage(pluginData, msg.channel, "Failed to move member");
return;
}
@ -174,7 +174,7 @@ export const VcmoveAllCmd = utilityCmd({
currMember.edit({
channelID: channel.id,
});
} catch (e) {
} catch {
if (msg.member.id === currMember.id) {
sendErrorMessage(pluginData, msg.channel, "Unknown error when trying to move members");
return;