mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
chore: fix leftover eslint exceptions
This commit is contained in:
@@ -58,7 +58,6 @@ const sublimit = { body: { name: 'newname' } };
|
||||
const noSublimit = { body: { bitrate: 40_000 } };
|
||||
|
||||
function startSublimitIntervals() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (!sublimitIntervals.reset) {
|
||||
sublimitResetAfter = Date.now() + 250;
|
||||
sublimitIntervals.reset = setInterval(() => {
|
||||
@@ -67,7 +66,6 @@ function startSublimitIntervals() {
|
||||
}, 250);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (!sublimitIntervals.retry) {
|
||||
retryAfter = Date.now() + 1_000;
|
||||
sublimitIntervals.retry = setInterval(() => {
|
||||
|
||||
@@ -62,7 +62,7 @@ test('resolveBody', async () => {
|
||||
};
|
||||
await expect(resolveBody(asyncIterable)).resolves.toStrictEqual(Buffer.from([1, 2, 3, 1, 2, 3, 1, 2, 3]));
|
||||
|
||||
// unknown type
|
||||
// @ts-expect-error This test is ensuring that this throws
|
||||
// Unknown type
|
||||
// @ts-expect-error: This test is ensuring that this throws
|
||||
await expect(resolveBody(true)).rejects.toThrow(TypeError);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user