chore: remove unused eslint disable comments (#8595)

This commit is contained in:
Parbez
2022-09-08 18:38:04 +05:30
committed by GitHub
parent dd5a08944c
commit dbca93098c
18 changed files with 4 additions and 19 deletions

View File

@@ -591,7 +591,6 @@ class WebSocketShard extends EventEmitter {
}
this.debug(
// eslint-disable-next-line max-len
`[WebSocket] did not close properly, assuming a zombie connection.\nEmitting close and reconnecting again.`,
);

View File

@@ -137,7 +137,6 @@ class GuildManager extends CachedManager {
return super.resolveId(guild);
}
/* eslint-disable max-len */
/**
* Options used to create a guild.
* @typedef {Object} GuildCreateOptions

View File

@@ -727,7 +727,6 @@ class Guild extends AnonymousGuild {
return new GuildAuditLogs(this, data);
}
/* eslint-disable max-len */
/**
* The data for editing a guild.
* @typedef {Object} GuildEditData

View File

@@ -25,7 +25,7 @@ class InteractionWebhook {
}
// These are here only for documentation purposes - they are implemented by Webhook
/* eslint-disable no-empty-function, valid-jsdoc */
/* eslint-disable no-empty-function */
/**
* Sends a message with this webhook.
* @param {string|MessagePayload|InteractionReplyOptions} options The content for the reply

View File

@@ -128,7 +128,6 @@ class MessagePayload {
let nonce;
if (typeof this.options.nonce !== 'undefined') {
nonce = this.options.nonce;
// eslint-disable-next-line max-len
if (typeof nonce === 'number' ? !Number.isInteger(nonce) : typeof nonce !== 'string') {
throw new RangeError(ErrorCodes.MessageNonceType);
}

View File

@@ -181,7 +181,7 @@ class Collector extends EventEmitter {
const onEnd = () => {
cleanup();
reject(this.collected); // eslint-disable-line prefer-promise-reject-errors
reject(this.collected);
};
this.on('collect', onCollect);