aboutsummaryrefslogtreecommitdiff
path: root/build/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/constants.js')
-rw-r--r--build/constants.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/constants.js b/build/constants.js
index b657426..3c0c7e9 100644
--- a/build/constants.js
+++ b/build/constants.js
@@ -64,8 +64,7 @@ async function fetchGithubApi(method, route, headers, json) {
}, headers),
});
}
- catch (err) {
- console.log('bruh, errored', err);
+ catch {
// if there's an error, wait a second and try again
await new Promise((resolve) => setTimeout(resolve, 1000));
return await fetchGithubApi(method, route, headers, json);
@@ -90,7 +89,6 @@ function fetchFile(path) {
'Accept': 'application/vnd.github.v3+json',
});
const data = await r.json();
- console.log('ok github api returned');
const file = {
path: data.path,
content: Buffer.from(data.content, data.encoding).toString(),