Skip to content

small refactor to clarify logic#362

Merged
rolyatmax merged 1 commit into
mainfrom
taylor/small-refactor
Dec 18, 2024
Merged

small refactor to clarify logic#362
rolyatmax merged 1 commit into
mainfrom
taylor/small-refactor

Conversation

@rolyatmax

Copy link
Copy Markdown
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.

@vercel

vercel Bot commented Dec 17, 2024

Copy link
Copy Markdown

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

@ellipsis-dev ellipsis-dev Bot left a comment

Copy link
Copy Markdown
Contributor

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.

@jakelazaroff jakelazaroff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@paulgb paulgb left a comment

Copy link
Copy Markdown
Member

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
@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