Skip to content

fix(opds): resolve build syntax and unsafe isNaN lint errors#15

Merged
chrox merged 1 commit into
readest:mainfrom
zeedif:patch-2
Apr 27, 2026
Merged

fix(opds): resolve build syntax and unsafe isNaN lint errors#15
chrox merged 1 commit into
readest:mainfrom
zeedif:patch-2

Conversation

@zeedif

@zeedif zeedif commented Apr 27, 2026

Copy link
Copy Markdown

This is a quick follow-up to PR #14 to address a couple of minor build and linting issues encountered while compiling and rebasing readest with the latest parser update.

What's changed

  • Build Fix (Syntax Error): Added missing parentheses around the || logical expression when mixed with the ?? nullish coalescing operator in getLink. Modern parsers require explicit grouping to prevent ambiguity.
  • Lint Fix (noGlobalIsNan): Replaced the global isNaN() check with Number.isNaN() inside the getPrice reducer. This resolves a Biome linter warning regarding unsafe type coercion, making the number validation stricter.

@chrox chrox merged commit 629299e into readest:main Apr 27, 2026
2 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.

2 participants