Skip to content

Commit b614bbd

Browse files
committed
Use implicit undefined equality
1 parent 8c54d05 commit b614bbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/src/export-csv.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function writeRow(
200200
}
201201

202202
function quote(value: any): string {
203-
if (value === null || value === undefined) {
203+
if (value == null) {
204204
return '';
205205
}
206206
if (typeof value === 'number') {
@@ -261,7 +261,7 @@ function getDateTimeValue(
261261
response: Pb.TaskData.IDateTimeResponse
262262
): string | null {
263263
const seconds = response.dateTime?.seconds;
264-
if (seconds === undefined || seconds === null) {
264+
if (seconds == null) {
265265
return null;
266266
}
267267
return new Date(Number(seconds) * 1000).toISOString();

0 commit comments

Comments
 (0)