We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5194fd commit e4ed160Copy full SHA for e4ed160
1 file changed
dist/index.js
@@ -10536,7 +10536,7 @@ const createGithubAccessToken = async (githubAppToken) => {
10536
10537
const response = await makeRequest(query, variables);
10538
10539
- if (!response.data && !response.data.createGithubAccessToken.success) {
+ if (!response.data || !response.data.createGithubAccessToken.success) {
10540
throw new Error(
10541
"Couldn't fetch access token for Github application. Check if you use the correct `BARECHECK_GITHUB_APP_TOKEN`"
10542
);
0 commit comments