Skip to content

Commit

Permalink
Add some trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Nov 15, 2024
1 parent 5443704 commit 2952481
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ internal data class CoilImageSource(
.data(model)
.build(),
imageLoader = imageLoader,
sizeResolver = { canvasSize.first().toCoilSize() }
sizeResolver = { canvasSize.first().toCoilSize() },
)
}
return resolver.resolved
}

private fun Size.toCoilSize() = CoilSize(
width = if (width.isFinite()) Dimension(width.roundToInt()) else Dimension.Undefined,
height = if (height.isFinite()) Dimension(height.roundToInt()) else Dimension.Undefined
height = if (height.isFinite()) Dimension(height.roundToInt()) else Dimension.Undefined,
)
}

Expand Down

0 comments on commit 2952481

Please sign in to comment.