Skip to content

Commit

Permalink
chore: remove unnecessary ?s
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed May 26, 2024
1 parent 549680c commit b31d94a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getGitHubAuthToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function getGitHubAuthToken(): Promise<GitHubAuthToken> {
const exec = util.promisify(cp.exec);
const token = await exec("gh auth token");

if (token?.stdout) {
if (token.stdout) {
return { succeeded: true, token: token.stdout };
}

Expand All @@ -20,7 +20,7 @@ export async function getGitHubAuthToken(): Promise<GitHubAuthToken> {
return {
error:
(help.stderr && `Could not run \`gh\`: ${help.stderr}`) ||
token?.stderr ||
token.stderr ||
undefined,
succeeded: false,
};
Expand Down

0 comments on commit b31d94a

Please sign in to comment.