Skip to content

Commit 66ac350

Browse files
committed
Represent missing date headers as undefined.
This to make date headers (Expires and Last-Modified) consistent with other headers.
1 parent a26f609 commit 66ac350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/ts/waterfall/details-overlay/extract-details-keys.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ let formatBytes = (size?: number) => ifValueDefined(size, (s) => `${s} byte (~${
1313

1414
let formatTime = (size?: number) => ifValueDefined(size, (s) => `${s} ms`);
1515

16-
let formatDate = (date?: string) => {
16+
const formatDate = (date?: string) => {
1717
if (!date) {
18-
return "";
18+
return undefined;
1919
}
2020
let dateToFormat = new Date(date);
2121
return `${date} </br>(local time: ${dateToFormat.toLocaleString()})`;

0 commit comments

Comments
 (0)