Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexclarke-g authored and robcos committed Jul 29, 2024
1 parent b35f210 commit c932343
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ class PartImages {
fun optimize(imageLoader: ImageLoader): Boolean {
var optimizationApplied = false
for ((resourceId, partImages) in imageUsage) {
val image = try {
imageLoader.loadImage(resourceId)
} catch (e: Exception) {
System.out.println("Skipping image $resourceId which could not be loaded")
continue
}
val image =
try {
imageLoader.loadImage(resourceId)
} catch (e: Exception) {
System.out.println("Skipping image $resourceId which could not be loaded")
continue
}

var maxWidth = 0
var maxHeight = 0
Expand Down

0 comments on commit c932343

Please sign in to comment.