Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 99ad178

Browse files
committed
Appease the linter
1 parent 5855930 commit 99ad178

6 files changed

+12
-11
lines changed

__mocks__/workerFactoryMock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ limitations under the License.
1515
*/
1616

1717
export default function workerFactory(options) {
18-
return jest.fn;
18+
return jest.fn;
1919
}

src/audio/recorderWorkletFactory.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ limitations under the License.
2121
import mxRecorderWorkletPath from "./RecorderWorklet";
2222

2323
export default function recorderWorkletFactory(context: AudioContext): Promise<void> {
24-
// The context.audioWorklet.addModule syntax is required for Webpack 5 to correctly recognise
25-
// this as a worklet rather than an asset. This also requires the parser.javascript.worker
26-
// configuration described in https://github.com/webpack/webpack.js.org/issues/6869.
27-
return context.audioWorklet.addModule(new URL("./RecorderWorklet.ts", import.meta.url));
24+
// The context.audioWorklet.addModule syntax is required for Webpack 5 to correctly recognise
25+
// this as a worklet rather than an asset. This also requires the parser.javascript.worker
26+
// configuration described in https://github.com/webpack/webpack.js.org/issues/6869.
27+
return context.audioWorklet.addModule(new URL("./RecorderWorklet.ts", import.meta.url));
2828
}

src/utils/createMatrixClient.ts

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
IndexedDBStore,
2424
LocalStorageCryptoStore,
2525
} from "matrix-js-sdk/src/matrix";
26+
2627
import indexeddbWorkerFactory from "../workers/indexeddbWorkerFactory";
2728

2829
const localStorage = window.localStorage;

src/workers/blurhashWorkerFactory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ limitations under the License.
1515
*/
1616

1717
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
18-
return new Worker(new URL("./workers/blurhash.worker.ts", import.meta.url), options);
19-
}
18+
return new Worker(new URL("./workers/blurhash.worker.ts", import.meta.url), options);
19+
}

src/workers/indexeddbWorkerFactory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ limitations under the License.
1515
*/
1616

1717
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
18-
return new Worker(new URL("../workers/indexeddb.worker.ts", import.meta.url), options)
19-
}
18+
return new Worker(new URL("../workers/indexeddb.worker.ts", import.meta.url), options);
19+
}

src/workers/playbackWorkerFactory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ limitations under the License.
1515
*/
1616

1717
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
18-
return new Worker(new URL("../workers/playback.worker.ts", import.meta.url), options)
19-
}
18+
return new Worker(new URL("../workers/playback.worker.ts", import.meta.url), options);
19+
}

0 commit comments

Comments
 (0)