Skip to content

Commit a410a7a

Browse files
committed
Fix eslint errors
1 parent 61b59bf commit a410a7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

war/src/main/webapp/scripts/hudson-behavior.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,7 +2723,9 @@ Behaviour.specify(
27232723
}
27242724

27252725
const date = new Date(parseInt(timestampVal));
2726-
if (isNaN(date.getTime())) return;
2726+
if (isNaN(date.getTime())) {
2727+
return;
2728+
}
27272729

27282730
if (formatPref === "iso8601") {
27292731
try {
@@ -2736,7 +2738,7 @@ Behaviour.specify(
27362738
hour12: false,
27372739
});
27382740
element.innerText = isoFormatter.format(date);
2739-
} catch (e) {
2741+
} catch {
27402742
const pad = (n) => String(n).padStart(2, "0");
27412743
element.innerText =
27422744
date.getFullYear() +

0 commit comments

Comments
 (0)