Skip to content

Commit f7ab604

Browse files
committed
ktlint
1 parent 9cc6f9f commit f7ab604

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-plugins/kmp-conventions/src/main/kotlin/aws/sdk/kotlin/gradle/kmp/ConfigureIosSimulator.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import org.jetbrains.kotlin.konan.target.HostManager
1717
* https://youtrack.jetbrains.com/issue/KT-38317
1818
*/
1919
public fun Project.configureIosSimulatorTasks() {
20-
if (this != rootProject) { throw GradleException("This function should only be called from the root project.") }
20+
if (this != rootProject) {
21+
throw GradleException("This function should only be called from the root project.")
22+
}
2123
if (!HostManager.hostIsMac) return
2224

2325
val simulatorDeviceName = project.findProperty("iosSimulatorDevice") as? String ?: "iPhone 15"
@@ -58,4 +60,4 @@ public fun Project.configureIosSimulatorTasks() {
5860
}
5961
shutdownTask.mustRunAfter(simulatorTasks)
6062
}
61-
}
63+
}

0 commit comments

Comments
 (0)