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

small refactor to clarify logic #362

Merged
merged 1 commit into from
Dec 18, 2024
Merged

small refactor to clarify logic #362

merged 1 commit into from
Dec 18, 2024

Conversation

rolyatmax
Copy link
Member

Small logic clarification I came across as I was catching up on the new provider. getClientToken already handles the AuthEndpoint type for both cases: when it's a function and when it's a string.

Copy link

vercel bot commented Dec 17, 2024

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

Name Status Preview Comments Updated (UTC)
y-sweet-demos ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 3:53pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
y-sweet-debugger ⬜️ Ignored (Inspect) Dec 17, 2024 3:53pm
y-sweet-gendocs ⬜️ Ignored (Inspect) Dec 17, 2024 3:53pm

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 586e6a9 in 7 seconds

More details
  • Looked at 23 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js-pkg/client/src/provider.ts:311
  • Draft comment:
    The refactor correctly simplifies the logic by removing redundant checks for authEndpoint type. This relies on getClientToken to handle both cases, which is a cleaner approach.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The refactor simplifies the logic by removing redundant checks and relying on the getClientToken function to handle both cases of authEndpoint. This is a good change as it reduces code duplication and potential errors.

Workflow ID: wflow_iEDknlw7PJ0erQqH


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@jakelazaroff jakelazaroff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@paulgb paulgb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rolyatmax rolyatmax merged commit 8391985 into main Dec 18, 2024
7 checks passed
@rolyatmax rolyatmax deleted the taylor/small-refactor branch December 18, 2024 16:10
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.

4 participants