Skip to content

Remove unnecessary this.x when x is a constructor param#761

Merged
wouterlucas merged 1 commit intolightning-js:mainfrom
guilhermesimoes:refactor/this-usage
Mar 17, 2026
Merged

Remove unnecessary this.x when x is a constructor param#761
wouterlucas merged 1 commit intolightning-js:mainfrom
guilhermesimoes:refactor/this-usage

Conversation

@guilhermesimoes
Copy link
Copy Markdown
Contributor

This leads to better code minification.

I can also add a custom ESLint rule to detect these cases if you wish.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 13, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Collaborator

@jfboeve jfboeve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@wouterlucas wouterlucas merged commit 37167a2 into lightning-js:main Mar 17, 2026
2 checks passed
@guilhermesimoes guilhermesimoes deleted the refactor/this-usage branch March 18, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants