Skip to content

Commit

Permalink
EP-4578
Browse files Browse the repository at this point in the history
  • Loading branch information
oplekal committed Jan 7, 2025
1 parent 156db96 commit b0cb77b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public Long getJnroOrDefault(Long defaultJnro) {
}

public LokalisoituTekstiDto getNimi() {
return Optional.ofNullable(koodi)
.map(KoodiDto::getNimi)
.orElse(Optional.ofNullable(nimi).orElse(LokalisoituTekstiDto.of("")));
return Optional.ofNullable(nimi)
.orElse(Optional.ofNullable(koodi).map(KoodiDto::getNimi).orElse(LokalisoituTekstiDto.of("")));
}
}

0 comments on commit b0cb77b

Please sign in to comment.