Skip to content

Commit 4740d7c

Browse files
committed
Resolve null when the token has not been set in the env
1 parent 0b94eff commit 4740d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/GitHubInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class GitHubInfo {
9898
_token() {
9999
const token = process.env.GREN_GITHUB_TOKEN;
100100

101-
return token ? Promise.resolve({ token }) : Promise.reject();
101+
return token ? Promise.resolve({ token }) : Promise.resolve(null);
102102
}
103103
}
104104

0 commit comments

Comments
 (0)