Skip to content

Commit

Permalink
EP-4578
Browse files Browse the repository at this point in the history
  • Loading branch information
oplekal committed Jan 15, 2025
1 parent b73f84e commit fa22bcf
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 fa22bcf

Please sign in to comment.