From cef94fea45b18c06772e7c43d12092ff9b5ce651 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 2 Jun 2021 12:38:41 +0200 Subject: [PATCH] fix lint --- src/matrix/room/sending/SendQueue.js | 2 +- src/mocks/poll.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/matrix/room/sending/SendQueue.js b/src/matrix/room/sending/SendQueue.js index 6d7ce596..cdab31a8 100644 --- a/src/matrix/room/sending/SendQueue.js +++ b/src/matrix/room/sending/SendQueue.js @@ -315,7 +315,7 @@ export class SendQueue { import {HomeServer as MockHomeServer} from "../../../mocks/HomeServer.js"; import {createMockStorage} from "../../../mocks/Storage.js"; import {NullLogger} from "../../../logging/NullLogger.js"; -import {event, withContent, withTextBody, withTxnId} from "../../../mocks/event.js"; +import {event, withTextBody, withTxnId} from "../../../mocks/event.js"; import {poll} from "../../../mocks/poll.js"; export function tests() { diff --git a/src/mocks/poll.js b/src/mocks/poll.js index 36c8e256..40348bb3 100644 --- a/src/mocks/poll.js +++ b/src/mocks/poll.js @@ -21,7 +21,7 @@ export async function poll(fn) { if (result) { return result; } else { - await new Promise(setImmediate); + await new Promise(setImmediate); //eslint-disable-line no-undef } - } while (1); + } while (1); //eslint-disable-line no-constant-condition } \ No newline at end of file