Skip to content

Minor tweaks#330

Draft
XhmikosR wants to merge 4 commits into
mainfrom
xmr/dev
Draft

Minor tweaks#330
XhmikosR wants to merge 4 commits into
mainfrom
xmr/dev

Conversation

@XhmikosR

@XhmikosR XhmikosR commented Jun 9, 2026

Copy link
Copy Markdown
Member

@joscha: unsure 100% if I prefer optional chaining here, but it should be the same regarding correctness and perf.

For the rest of the changes, I checked the generated file and it seems they are identical, minus the const change.

Let me know what you think :)

XhmikosR added 4 commits June 9, 2026 10:47
Fixes unicorn/no-object-as-default-parameter. url is optional and only
checked for truthiness, so the empty default is equivalent.
Return undefined for absent values instead of false, and cast
filter(Boolean) to string[] instead of using a type predicate.

@joscha joscha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think I prefer the old code, it conveys the intent more clear. But I am too worried either way.

@XhmikosR

XhmikosR commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

You mean regarding the optional chain? I can revert it, I'm in between, myself :)

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