Skip to content

Commit

Permalink
Removed Null
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc committed Apr 26, 2021
1 parent bc805a5 commit ab6aeec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/importer/server/classes/ImportDataConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { generateUsernameSuggestion, insertMessage } from '../../../lib/server';
import { setUserActiveStatus } from '../../../lib/server/functions/setUserActiveStatus';
import { IUser } from '../../../../definition/IUser';

// @ts-ignore
type NullableLogger = Logger | Null;
// @ts-ignore //@ToDo: Add the Logger class definitions.
type FakeLogger = Logger;

type IRoom = Record<string, any>;
type IMessage = Record<string, any>;
Expand Down Expand Up @@ -64,7 +64,7 @@ export class ImportDataConverter {

private _roomNameCache: Map<string, string>;

private _logger: NullableLogger;
private _logger: FakeLogger;

constructor() {
this._userCache = new Map();
Expand All @@ -73,7 +73,7 @@ export class ImportDataConverter {
this._roomNameCache = new Map();
}

setLogger(logger: NullableLogger): void {
setLogger(logger: FakeLogger): void {
this._logger = logger;
}

Expand Down

0 comments on commit ab6aeec

Please sign in to comment.