export class StorageFactory {
// eslint-disable-next-line @typescript-eslint/no-empty-function
- private constructor() {}
+ private constructor() {
+ // This is intentional
+ }
public static getStorage(type: StorageType, connectionURI: string, logPrefix: string): Storage {
let storageInstance: Storage = null;
export default class WorkerFactory {
// eslint-disable-next-line @typescript-eslint/no-empty-function
- private constructor() {}
+ private constructor() {
+ // This is intentional
+ }
public static getWorkerImplementation<T>(workerScript: string, workerProcessType: WorkerProcessType, options?: WorkerOptions): WorkerAbstract | null {
if (!isMainThread) {
*/
private startWorker(): void {
const worker = new Worker(this.workerScript);
- worker.on('message', () => { });
- worker.on('error', () => { });
+ worker.on('message', () => { /* This is intentional */ });
+ worker.on('error', () => { /* This is intentional */ });
worker.on('exit', (code) => {
WorkerUtils.defaultExitHandler(code);
this.workerSet.delete(this.getWorkerSetElementByWorker(worker));
private getLastWorkerSetElement(): WorkerSetElement {
let workerSetElement: WorkerSetElement;
// eslint-disable-next-line no-empty
- for (workerSetElement of this.workerSet) { }
+ for (workerSetElement of this.workerSet) { /* This is intentional */ }
return workerSetElement;
}