Add @typescript-eslint/prefer-nullish-coalescing eslint rule
This commit is contained in:
@@ -36,9 +36,7 @@ export class ApcParser implements IApcParser {
|
||||
* @param handler The handler to register
|
||||
*/
|
||||
public registerHandler(ident: number, handler: IApcHandler): 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