-
Notifications
You must be signed in to change notification settings - Fork 391
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
Conversation
src/utils/init/config-github.ts
Outdated
|
||
const githubToken: Token = globalConfig.get(`users.${userId}.auth.github`) | ||
|
||
if (githubToken && githubToken.user && githubToken.token) { | ||
if (githubToken.user && githubToken.token) { |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
5b3d785
to
7d47191
Compare
7d47191
to
bb24853
Compare
Summary
The types fixes in #7130 identified a number of issues. This fixes one of those — just some unused args passed to a function.