Skip to content

Commit a2917b0

Browse files
committed
Check !== undefined rather than truthiness
1 parent 67e683b commit a2917b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/analyze-action.js

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/database-upload.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ export async function cleanupAndUploadDatabases(
145145
reports.push({
146146
language,
147147
error: util.getErrorMessage(e),
148-
...(bundledDbSize ? { zipped_upload_size_bytes: bundledDbSize } : {}),
148+
...(bundledDbSize !== undefined
149+
? { zipped_upload_size_bytes: bundledDbSize }
150+
: {}),
149151
});
150152
}
151153
}

0 commit comments

Comments
 (0)