|
|
|
|
|
by tom_
793 days ago
|
|
I've had it generate some verbose stuff when using .?, along these lines: (_c = this.log) === null || _c === void 0 ? void 0 : _c.withIndent(' ', () => {
var _a;
// (pointless ?. silence eslint)
(_a = this.log) === null || _a === void 0 ? void 0 : _a.pn(`Buffer address: 0x${utils.hex8(bufferAddress)} `);
});
This was originally this: this.log?.withIndent(' ', () => {
// (pointless ?. silence eslint)
this.log?.pn(`Buffer address: 0x${utils.hex8(bufferAddress)} `);
});
If you have a long chain of ?., perhaps it gets really ugly. |
|