Skip to content

Commit 993c998

Browse files
committed
Remove unnessessary GITHUB_TOKEN env variable check in repo fetching script
1 parent fc7676d commit 993c998

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/utilities/fetch-package-repos.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ async function paginate (org) {
3838
}
3939

4040
async function main() {
41-
if (process.env.GITHUB_TOKEN) {
42-
api.authenticate({
43-
type: 'token',
44-
token: process.env.GITHUB_TOKEN
45-
});
46-
47-
const rateLimit = await api.misc.getRateLimit({});
48-
49-
console.log('Github API rate limit:', rateLimit.data.rate);
50-
}
51-
5241
mkdirp.sync(path.resolve(__dirname, `../../repositories/`));
5342

5443
for (const [type, collection] of Object.entries(fetch)) {

0 commit comments

Comments
 (0)