Skip to content

perf: do not perform useless checks#855

Merged
KnorpelSenf merged 2 commits intomainfrom
no-redundant-checks
Dec 22, 2025
Merged

perf: do not perform useless checks#855
KnorpelSenf merged 2 commits intomainfrom
no-redundant-checks

Conversation

@KnorpelSenf
Copy link
Member

Those were added needlessly, so we can remove them

@KnorpelSenf KnorpelSenf merged commit 4eb8224 into main Dec 22, 2025
12 checks passed
@KnorpelSenf KnorpelSenf deleted the no-redundant-checks branch December 22, 2025 16:24
@KnightNiwrem
Copy link
Contributor

KnightNiwrem commented Dec 22, 2025

For future readers: if msg?.xyz is truthy, then msg cannot be falsy. Hence msg is not undefined in the true branch of the ternary expression.

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