I dont think we need () => in front of typeof data === 'string'

This commit is contained in:
Anthony Kim
2025-10-22 16:23:35 -07:00
parent c3bb36bad9
commit 09e26980d3
+1 -1
View File
@@ -448,7 +448,7 @@ export class InputHandler extends Disposable implements IInputHandler {
this._logService.debug(`parsing data ${typeof data === 'string' ? ` "${data}"` : ` "${Array.prototype.map.call(data, e => String.fromCharCode(e)).join('')}"`}`);
}
if (this._logService.logLevel === LogLevelEnum.TRACE) {
this._logService.trace(`parsing data (codes)`, () => typeof data === 'string'
this._logService.trace(`parsing data (codes)`, typeof data === 'string'
? data.split('').map(e => e.charCodeAt(0))
: data
);