Skip to content

chore: remove unnecessary type check - #153

Merged
Everduin94 merged 1 commit into
Everduin94:mainfrom
gameroman:remove-type-check
Aug 16, 2026
Merged

Everduin94 merged 1 commit into
Everduin94:mainfrom
gameroman:remove-type-check

Conversation

@gameroman

@gameroman gameroman commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Removed unnecessary typeof jsonString !== "string" check since TypeScript guarantees the type will be string

@Everduin94
Everduin94 merged commit 412b934 into Everduin94:main Aug 16, 2026
4 checks passed
@Everduin94

Copy link
Copy Markdown
Owner

@gameroman - Thanks for the contribution!

I can't remember if that was added because the original dependency it was based on was pure js, or if it was because it was expected to be used at a boundary where the run-time type could possibly differ from string.

Either way, based on how we use it, looks like a good change to me, thanks!

@gameroman
gameroman deleted the remove-type-check branch August 16, 2026 19:39
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.26.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants