mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 16:58:47 +00:00
Check !== undefined rather than truthiness
This commit is contained in:
@@ -145,7 +145,9 @@ export async function cleanupAndUploadDatabases(
|
||||
reports.push({
|
||||
language,
|
||||
error: util.getErrorMessage(e),
|
||||
...(bundledDbSize ? { zipped_upload_size_bytes: bundledDbSize } : {}),
|
||||
...(bundledDbSize !== undefined
|
||||
? { zipped_upload_size_bytes: bundledDbSize }
|
||||
: {}),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user