Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: sessions for user without error #8742

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Nov 13, 2024

About the changes

Method that queries sessions for users returns empty array when no sessions. Previously it was throwing an error. Since it's not an exceptional scenario returning an empty list seems to be less surprising at call site (especially with a list semantics on the return side).

Note: this method was used only in tests and my new code that I currently work on. The method is not used in the enterprise repo.

Important files

Discussion points

Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Nov 13, 2024 3:04pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Nov 13, 2024 3:04pm

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@kwasniew kwasniew requested review from chriswk and Tymek November 13, 2024 15:05
@kwasniew kwasniew merged commit bcbbd5c into main Nov 13, 2024
9 checks passed
@kwasniew kwasniew deleted the sessions-for-user-remove-error branch November 13, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants