Skip to content

Commit 23ffa72

Browse files
committed
remove unnecessary else block
1 parent 3421b7f commit 23ffa72

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

desktop/src/app/components/navbar/warnings/modals/fix-outliers-modal.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@ export class FixOutliersModalComponent {
7474
if (!this.hasOutlierValue(document, field)) continue;
7575
const valuelist: Valuelist = await this.getValuelist(document, field);
7676
if (valuelist && equal(valuelist, this.valuelist)) {
77+
affectedDocumentComplete.fields.push(field);
7778
if (this.field.inputType === Field.InputType.CHECKBOXES &&
7879
field.inputType === Field.InputType.CHECKBOXES) {
7980
affectedDocumentCheckboxes.fields.push(field);
80-
affectedDocumentComplete.fields.push(field);
81-
} else {
82-
affectedDocumentComplete.fields.push(field);
83-
};
81+
}
8482
}
8583
}
8684

0 commit comments

Comments
 (0)