mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-31 22:51:39 +01:00
Use undefined only instead of both undefined and null
This commit is contained in:
parent
09851600f7
commit
eb7c5c4437
@ -34,7 +34,7 @@ export abstract class BaseLogger {
|
||||
log(labelOrValues: LabelOrValues, logLevel: LogLevel = LogLevel.Info) {
|
||||
const item = new LogItem(labelOrValues, logLevel, null, this);
|
||||
item.end = item.start;
|
||||
this._persistItem(item, null, false);
|
||||
this._persistItem(item, undefined, false);
|
||||
}
|
||||
|
||||
/** if item is a log item, wrap the callback in a child of it, otherwise start a new root log item. */
|
||||
@ -134,7 +134,7 @@ export abstract class BaseLogger {
|
||||
this._openItems.clear();
|
||||
}
|
||||
|
||||
abstract _persistItem(item: LogItem, filter?: LogFilter | null, forced?: boolean): void;
|
||||
abstract _persistItem(item: LogItem, filter?: LogFilter, forced?: boolean): void;
|
||||
|
||||
abstract export(): void;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user