Skip to content

Commit

Permalink
Adjust type annotations on payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Neatherway committed Dec 7, 2020
1 parent d0d858c commit 7afd333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/upload-lib.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/upload-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function buildPayload(
mode: util.Mode
) {
if (mode === "actions") {
const payloadObj: any = {
const payloadObj = {
commit_oid: commitOid,
ref,
analysis_key: analysisKey,
Expand All @@ -197,8 +197,8 @@ export function buildPayload(
environment,
started_at: process.env[sharedEnv.CODEQL_WORKFLOW_STARTED_AT],
tool_names: toolNames,
base_ref: undefined,
base_sha: undefined,
base_ref: undefined as undefined | string,
base_sha: undefined as undefined | string,
};

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

0 comments on commit 7afd333

Please sign in to comment.