We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b59bf commit a410a7aCopy full SHA for a410a7a
war/src/main/webapp/scripts/hudson-behavior.js
@@ -2723,7 +2723,9 @@ Behaviour.specify(
2723
}
2724
2725
const date = new Date(parseInt(timestampVal));
2726
- if (isNaN(date.getTime())) return;
+ if (isNaN(date.getTime())) {
2727
+ return;
2728
+ }
2729
2730
if (formatPref === "iso8601") {
2731
try {
@@ -2736,7 +2738,7 @@ Behaviour.specify(
2736
2738
hour12: false,
2737
2739
});
2740
element.innerText = isoFormatter.format(date);
- } catch (e) {
2741
+ } catch {
2742
const pad = (n) => String(n).padStart(2, "0");
2743
element.innerText =
2744
date.getFullYear() +
0 commit comments