Skip to content

Minor refactoring#272

Merged
XhmikosR merged 1 commit intomainfrom
xmr/dev
Apr 8, 2024
Merged

Minor refactoring#272
XhmikosR merged 1 commit intomainfrom
xmr/dev

Conversation

@XhmikosR
Copy link
Copy Markdown
Member

@XhmikosR XhmikosR commented Apr 6, 2024

  • return early
  • use a ternary
  • be explicit when calling function
  • use array includes

Non-whitespace diff: https://github.com/dependents/node-detective-postcss/pull/272/files?w=1

* return early
* use a ternary
* be explicit when calling function
* use array includes
@XhmikosR XhmikosR requested a review from joscha April 6, 2024 05:28
@XhmikosR XhmikosR marked this pull request as ready for review April 6, 2024 05:30
Copy link
Copy Markdown
Collaborator

@joscha joscha left a comment

Choose a reason for hiding this comment

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

LGTM. I think the readability is not necessarily better with the ternaries, but it's down to personal preference, I suppose.

@XhmikosR
Copy link
Copy Markdown
Member Author

XhmikosR commented Apr 6, 2024 via email

@joscha
Copy link
Copy Markdown
Collaborator

joscha commented Apr 6, 2024

I can revert those changes if you prefer, just let me know

They're fine, thanks for caring!

@XhmikosR XhmikosR merged commit a200b51 into main Apr 8, 2024
@XhmikosR XhmikosR deleted the xmr/dev branch April 8, 2024 05:12
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.

2 participants