Add @typescript-eslint/prefer-nullish-coalescing eslint rule
This commit is contained in:
@@ -29,9 +29,7 @@ export class DcsParser implements IDcsParser {
|
||||
}
|
||||
|
||||
public registerHandler(ident: number, handler: IDcsHandler): IDisposable {
|
||||
if (this._handlers[ident] === undefined) {
|
||||
this._handlers[ident] = [];
|
||||
}
|
||||
this._handlers[ident] ??= [];
|
||||
const handlerList = this._handlers[ident];
|
||||
handlerList.push(handler);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user