Skip to content

Conversation

@erichbehrens
Copy link

@erichbehrens erichbehrens commented Apr 10, 2025

These methods can return null, but the typing is wrong, which prevents typescript/eslint to perform proper validation. For instance, the following code does not pass the @typescript-eslint/no-unnecessary-condition rule.

if (oidcService.getAccessToken() === null) { ... }

Unnecessary conditional, the types have no overlap.ESLint[@typescript-eslint/no-unnecessary-condition]

@L-X-T L-X-T force-pushed the master branch 2 times, most recently from e1fc6c5 to 5d10af2 Compare June 30, 2025 12:18
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