Skip to content

Commit 7afd333

Browse files
committed
Adjust type annotations on payload
1 parent d0d858c commit 7afd333

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/upload-lib.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-lib.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function buildPayload(
186186
mode: util.Mode
187187
) {
188188
if (mode === "actions") {
189-
const payloadObj: any = {
189+
const payloadObj = {
190190
commit_oid: commitOid,
191191
ref,
192192
analysis_key: analysisKey,
@@ -197,8 +197,8 @@ export function buildPayload(
197197
environment,
198198
started_at: process.env[sharedEnv.CODEQL_WORKFLOW_STARTED_AT],
199199
tool_names: toolNames,
200-
base_ref: undefined,
201-
base_sha: undefined,
200+
base_ref: undefined as undefined | string,
201+
base_sha: undefined as undefined | string,
202202
};
203203

204204
// This behaviour can be made the default when support for GHES 3.0 is discontinued.

0 commit comments

Comments
 (0)