Skip to content

Refactor: extract common logic, checking if a reserved keyword is used, from let, const and assign resources to avoid code duplication. #530

@dastin-sandura

Description

@dastin-sandura

Is your feature request related to a problem? If yes, please describe the problem.
It is not a problem, because the code works well and it is not visible to the user. It can be considered a 'code smell' by some devs.

Describe the solution you'd like to see.
Removed duplication of code 😄

Were you inspired by anything else, that you have experienced?
Inspired by @YonatanKra

Describe alternatives you've considered (if any). If you haven't that is also ok 😄
The alternative is leaving the duplicated code, but as new people contribute this will become more and more problematic.

Any additional details about this request that you want to share?
Nope

How important is it for you to have this feature?
It could save time in the future because if there is only one implementation, changes will be made in one place instead of 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions