Skip to content

Conversation

@agilgur5
Copy link
Collaborator

Summary

Simplify a conditional in tscache.ts by using optional chaining

Details

- as I've done in other places, simplify a condition by using optional chaining syntax (over the previously necessary syntax with `&&` etc)

- also add a new line to the first `.map` here
  - for style consistency and because this is a super long line
  - this wasn't possible before the lodash refactor because it was all one big single statement in the chain
@agilgur5 agilgur5 added kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs scope: cache Related to the cache labels Jun 11, 2022
@ezolenko ezolenko merged commit a31cda1 into ezolenko:master Jun 14, 2022
@agilgur5 agilgur5 deleted the refactor-cache-optional-chaining branch July 2, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs scope: cache Related to the cache

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants