Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkopedia committed May 31, 2024
1 parent 4afb8e4 commit e13bc89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ subprojects {
apply(plugin = "com.github.hierynomus.license")
tasks.register(
"licenseCheckForKotlin",
com.hierynomus.gradle.license.tasks.LicenseCheck::class,
com.hierynomus.gradle.license.tasks.LicenseCheck::class
) {
source = fileTree(project.projectDir) { include("**/*.kt") }
}
tasks["license"].dependsOn("licenseCheckForKotlin")
tasks.register(
"licenseFormatForKotlin",
com.hierynomus.gradle.license.tasks.LicenseFormat::class,
com.hierynomus.gradle.license.tasks.LicenseFormat::class
) {
source = fileTree(project.projectDir) { include("**/*.kt") }
}
Expand Down
4 changes: 3 additions & 1 deletion ksrpc-test/src/jsTest/kotlin/TestUtilsJs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ external class RetPromise : Promise<Any?>
actual typealias RunBlockingReturn = RetPromise

@OptIn(DelicateCoroutinesApi::class)
internal actual fun runBlockingUnit(function: suspend CoroutineScope.() -> Unit): RunBlockingReturn {
internal actual fun runBlockingUnit(
function: suspend CoroutineScope.() -> Unit
): RunBlockingReturn {
@Suppress("UnsafeCastFromDynamic")
return GlobalScope.promise {
function()
Expand Down
1 change: 1 addition & 0 deletions ksrpc-test/src/jvmTest/kotlin/TestUtilsJvm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ actual fun createPipe(): Pair<ByteWriteChannel, ByteReadChannel> {
}

actual typealias RunBlockingReturn = Unit

@OptIn(DelicateCoroutinesApi::class)
internal actual fun runBlockingUnit(function: suspend CoroutineScope.() -> Unit) {
val block = CountDownLatch(1)
Expand Down

0 comments on commit e13bc89

Please sign in to comment.