Skip to content

Commit 5dcb4e6

Browse files
authored
Fix Prettier errors (jenkinsci#10102)
1 parent 56b7c1d commit 5dcb4e6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ function findNext(src, filter) {
538538
function findFormItem(src, name, directionF) {
539539
const name2 = "_." + name; // handles <textbox field="..." /> notation silently
540540
return directionF(src, function (e) {
541-
if (e.tagName === "INPUT" && e.type === "radio" ) {
541+
if (e.tagName === "INPUT" && e.type === "radio") {
542542
if (e.checked === true) {
543543
let r = 0;
544544
while (e.name.substring(r, r + 8) === "removeme") {
@@ -547,7 +547,7 @@ function findFormItem(src, name, directionF) {
547547
}
548548
return name === e.name.substring(r);
549549
}
550-
return false
550+
return false;
551551
}
552552
return (
553553
(e.tagName === "INPUT" ||
@@ -734,11 +734,12 @@ function registerValidator(e) {
734734
return;
735735
}
736736

737-
if (c.tagName === 'INPUT' && c.type === "radio") {
738-
document.querySelectorAll(`input[name='${c.name}'][type='radio']`)
739-
.forEach(element => {
737+
if (c.tagName === "INPUT" && c.type === "radio") {
738+
document
739+
.querySelectorAll(`input[name='${c.name}'][type='radio']`)
740+
.forEach((element) => {
740741
element.addEventListener("change", checker.bind(e));
741-
})
742+
});
742743
} else {
743744
c.addEventListener("change", checker.bind(e));
744745
}

0 commit comments

Comments
 (0)