Skip to content

Minor tweaks#330

Merged
XhmikosR merged 3 commits into
mainfrom
xmr/dev
Jun 20, 2026
Merged

Minor tweaks#330
XhmikosR merged 3 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 :)

@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 :)

@XhmikosR XhmikosR marked this pull request as ready for review June 18, 2026 02:39
XhmikosR added 3 commits June 20, 2026 09:14
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.
@XhmikosR XhmikosR merged commit cb299eb into main Jun 20, 2026
6 checks passed
@XhmikosR XhmikosR deleted the xmr/dev branch June 20, 2026 06:16
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