Skip to content

Commit

Permalink
chore(refact): Wrap ternaries
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Aug 8, 2024
1 parent e3e6c0e commit a1d3ff5
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,18 @@ public Tag getParent() {

@Override
public Tag getParent(String name) {
return parent != null && parent.isNamed(name) ? parent : null;
return parent != null && parent.isNamed(name)
? parent
: null
;
}

@Override
public Tag getParent(TagName name) {
return parent != null && parent.isNamed(name) ? parent : null;
return parent != null && parent.isNamed(name)
? parent
: null
;
}

@Override
Expand Down

0 comments on commit a1d3ff5

Please sign in to comment.