diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index abf8fa087b..267571507a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -6,7 +6,7 @@ composeCompiler = "1.4.7" javaTarget = "11" jcodec = "0.2.5" kotlin = "1.8.21" -ktlint = "0.49.1" +ktlint = "0.50.0" moshi = "1.15.0" minSdk = "25" diff --git a/paparazzi/src/main/java/app/cash/paparazzi/internal/resources/MultiResourceRepository.kt b/paparazzi/src/main/java/app/cash/paparazzi/internal/resources/MultiResourceRepository.kt index 381160fe60..e6ec42b207 100644 --- a/paparazzi/src/main/java/app/cash/paparazzi/internal/resources/MultiResourceRepository.kt +++ b/paparazzi/src/main/java/app/cash/paparazzi/internal/resources/MultiResourceRepository.kt @@ -437,7 +437,9 @@ internal abstract class MultiResourceRepository internal constructor(displayName val c: Int = item1.configuration.compareTo(item2.configuration) return if (c != 0) { c - } else priorityComparator.compare(item1, item2) + } else { + priorityComparator.compare(item1, item2) + } } }