From c0c534dafb54ebf9f95a5054f576ad99de29f232 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 29 Jun 2021 17:52:00 -0500 Subject: enable strictNullChecks and fix all related issues (#65) --- build/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/constants.js') diff --git a/build/constants.js b/build/constants.js index 22327c5..414a6c5 100644 --- a/build/constants.js +++ b/build/constants.js @@ -57,7 +57,7 @@ async function fetchGithubApi(method, route, headers, json) { console.debug('fetching github api', method, route); const data = await node_fetch_1.default(githubApiBase + route, { agent: () => httpsAgent, - body: json ? JSON.stringify(json) : null, + body: json ? JSON.stringify(json) : undefined, method, headers: Object.assign({ 'Authorization': `token ${process.env.github_token}` -- cgit