Skip to content

Commit

Permalink
refactor: remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ingogriebsch committed Mar 19, 2022
1 parent f9f0c4a commit f1ee878
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ private String title(Link link) {
}

LinkRelation rel = link.getRel();
if (rel != null) {
return title(SirenLink.TitleResolvable.of(rel));
}
return null;
return title(SirenLink.TitleResolvable.of(rel));
}

private String actionTitle(String name) {
Expand Down

0 comments on commit f1ee878

Please sign in to comment.