Skip to content

Commit

Permalink
#13070 - Eliminating unnecessary if
Browse files Browse the repository at this point in the history
  • Loading branch information
carina29 committed Jun 4, 2024
1 parent 480ca6f commit 3011d6a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import de.symeda.sormas.api.infrastructure.facility.FacilityReferenceDto;
import de.symeda.sormas.api.selfreport.SelfReportDto;
import de.symeda.sormas.api.selfreport.SelfReportImportFacade;
import de.symeda.sormas.api.selfreport.SelfReportType;
import de.symeda.sormas.api.user.UserRight;
import de.symeda.sormas.api.utils.DataHelper;
import de.symeda.sormas.api.utils.DateHelper;
Expand Down Expand Up @@ -73,9 +72,6 @@ public ImportLineResultDto<SelfReportDto> importSelfReportData(
}

SelfReportDto selfReport = SelfReportDto.build(null);
if (!values[0].isBlank()) {
selfReport.setType(SelfReportType.valueOf(values[0]));
}
ImportLineResultDto<SelfReportDto> importResult = buildSelfReport(values, entityClasses, entityPropertyPaths, ignoreEmptyEntries, selfReport);

if (importResult.isError()) {
Expand Down

0 comments on commit 3011d6a

Please sign in to comment.