Skip to content

Commit

Permalink
move null check to the inner function
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Oct 25, 2023
1 parent 7c2feb5 commit fb369e0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ public CompletableFuture<Set<Person>> savePatients(byte[] content, UUID facility
.ethnicity(convertEthnicityToDatabaseValue(extractedData.getEthnicity().getValue()))
.gender(convertSexToDatabaseValue(extractedData.getBiologicalSex().getValue()))
.genderIdentity(
extractedData.getGenderIdentity().getValue() == null
? null
: convertGenderIdentityToDatabaseValue(
extractedData.getGenderIdentity().getValue()))
convertGenderIdentityToDatabaseValue(
extractedData.getGenderIdentity().getValue()))
.residentCongregateSetting(
parseYesNoUnk(extractedData.getResidentCongregateSetting().getValue()))
.employedInHealthcare(
Expand Down

0 comments on commit fb369e0

Please sign in to comment.