Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024.38.1 #1444

Merged
merged 2 commits into from
Sep 20, 2024
Merged

Release 2024.38.1 #1444

merged 2 commits into from
Sep 20, 2024

Conversation

kasperg
Copy link
Contributor

@kasperg kasperg commented Sep 20, 2024

No description provided.

The current implementation will return undefined if the creators
array is empty. This causes other functions which expect a string
(which is what TypeScript assumes) to fail.

Add a return type to the function to assert the intention of the
function. We could also have allowed it to return undefined if the
creators array is empty but that seems to be against the naming of the
function, creatorsToString.

Add a check to handle single array and empty creators array
separately. If there are no creators then return an empty string.
…f-no-creators

Ensure creatorsToString() always returns a string
@kasperg kasperg merged commit a36a48a into main Sep 20, 2024
24 checks passed
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.

1 participant