Skip to content

Fix inverted condition#691

Merged
WhyNotHugo merged 1 commit intozk-org:devfrom
WhyNotHugo:inverted-condition
Apr 7, 2026
Merged

Fix inverted condition#691
WhyNotHugo merged 1 commit intozk-org:devfrom
WhyNotHugo:inverted-condition

Conversation

@WhyNotHugo
Copy link
Copy Markdown
Contributor

@WhyNotHugo WhyNotHugo commented Apr 7, 2026

linkMatchesPath validates that err != nil and then uses the non-error value.

Invert this condition; only use the value if there was not an error.

linkMatchesPath validates that `err != nil` and then uses the non-error
value.

Invert this condition; only use the value if there **was not** an error.
@WhyNotHugo WhyNotHugo merged commit 23d3c03 into zk-org:dev Apr 7, 2026
@WhyNotHugo WhyNotHugo deleted the inverted-condition branch April 7, 2026 22:53
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