Skip to content

Commit 563d8c7

Browse files
committed
Do not use new syntax
1 parent a7c67f6 commit 563d8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/sort-libraries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const getGitHubStats = async githubRepo => {
6565
},
6666
})
6767
const responseJson = await response.json()
68-
if (!responseJson?.data) {
68+
if (!responseJson || !responseJson.data) {
6969
throw `GitHub returned empty response for ${owner}/${repoName}`
7070
}
7171
const { repositoryOwner } = responseJson.data

0 commit comments

Comments
 (0)