Skip to content

refactor: remove unused args in calls to getBuildSettings #7182

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

Merged
merged 3 commits into from
Apr 15, 2025

Conversation

serhalp
Copy link
Collaborator

@serhalp serhalp commented Apr 9, 2025

Summary

The types fixes in #7130 identified a number of issues. This fixes one of those — just some unused args passed to a function.

Copy link

github-actions bot commented Apr 9, 2025

📊 Benchmark results

Comparing with b3fd702

  • Dependency count: 1,237 (no change)
  • Package size: 311 MB (no change)
  • Number of ts-expect-error directives: 419 ⬇️ 0.48% decrease vs. b3fd702

@serhalp serhalp marked this pull request as ready for review April 9, 2025 16:16
@serhalp serhalp requested a review from a team as a code owner April 9, 2025 16:16

const githubToken: Token = globalConfig.get(`users.${userId}.auth.github`)

if (githubToken && githubToken.user && githubToken.token) {
if (githubToken.user && githubToken.token) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this right? Where do we validate that githubToken is not undefined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Bleh, good catch. What happened here is eslint --fix changed this automatically due to the incorrect Token type.

The GlobalConfigStore refactor was great but we should fix that any. Dunno what the best approach will be there though... maybe use zod?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, we should parse the config file when we load it (the challenge is being very careful about the shape of the global config file).

@serhalp serhalp requested a review from ndhoule April 14, 2025 19:44
@serhalp serhalp force-pushed the refactor/remove-unused-args branch from 5b3d785 to 7d47191 Compare April 15, 2025 12:29
@serhalp serhalp enabled auto-merge (squash) April 15, 2025 12:29
@serhalp serhalp force-pushed the refactor/remove-unused-args branch from 7d47191 to bb24853 Compare April 15, 2025 13:52
@serhalp serhalp merged commit 506fef8 into main Apr 15, 2025
52 checks passed
@serhalp serhalp deleted the refactor/remove-unused-args branch April 15, 2025 14: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.

2 participants