Skip to content

Commit

Permalink
[Adaptive] Use early-return in placement
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvanyo committed Sep 9, 2022
1 parent 13e890a commit c5ab2bf
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ internal fun TwoPane(
val splitResult = strategy.calculateSplitResult(
density = density,
layoutDirection = layoutDirection,
layoutCoordinates = checkNotNull(coordinates) {
"TwoPane does not support the use of alignment lines!"
}
layoutCoordinates = coordinates ?: return@layout
)

val gapOrientation = splitResult.gapOrientation
Expand Down

0 comments on commit c5ab2bf

Please sign in to comment.