Closed jaysylvester closed 4 months ago
Much of citizen was written before node supported option chaining, so there's lots of this:
if ( something && something.else && something.else.goes && something.else.goes.here ) { doSomething() }
The cache module is particularly bad. Could use some cleanup.
if ( something?.else?.goes?.here ) { doSomething() }
Made these optimizations across a few unrelated commits. Should be addressed pretty much everywhere.
Much of citizen was written before node supported option chaining, so there's lots of this:
if ( something && something.else && something.else.goes && something.else.goes.here ) { doSomething() }
The cache module is particularly bad. Could use some cleanup.
if ( something?.else?.goes?.here ) { doSomething() }