Skip to content

Commit

Permalink
Fix Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoxaAntoxic committed Dec 30, 2024
1 parent 873272c commit e50aead
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ private static Integer resolveHeight(Data data, ExtImpFlipp extImp) {
return Optional.ofNullable(data)
.map(Data::getCustomData)
.map(customData -> customData.get(startCompact ? "compactHeight" : "standardHeight"))
.filter(JsonNode::isNumber)
.map(JsonNode::asInt)
.orElse(startCompact ? DEFAULT_COMPACT_HEIGHT : DEFAULT_STANDARD_HEIGHT);
}
Expand Down

0 comments on commit e50aead

Please sign in to comment.