Skip to content

Commit

Permalink
fix spotless violations
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaGulya committed May 26, 2024
1 parent bc1d9f1 commit 824c9fc
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,4 @@ class WebWorkerDriver(private val worker: Worker) : SqlDriver {
),
)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ internal actual class WorkerWrapper actual constructor(
worker.removeEventListener("message", messageListener)
worker.removeEventListener("error", errorListener)
}

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package app.cash.sqldelight.driver.worker.api

internal actual sealed interface WorkerAction

@Suppress("NOTHING_TO_INLINE")
@Suppress("NOTHING_TO_INLINE", "FunctionName", "RedundantSuppression")
internal actual inline fun WorkerAction(value: String) = value.unsafeCast<WorkerAction>()
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import app.cash.sqldelight.driver.worker.api.WorkerResult
import app.cash.sqldelight.driver.worker.api.WorkerResultWithRowCount

internal class JsWorkerResultWithRowCount(
private val data: JsWorkerResponse,
private val data: JsWorkerResponse,
) :
WorkerResultWithRowCount {
WorkerResultWithRowCount {
override val rowCount: Long by lazy {
when {
data.results.values.isEmpty() -> 0L
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,4 @@ internal actual class WorkerWrapper actual constructor(
actual fun terminate() {
worker.terminate()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package app.cash.sqldelight.driver.worker.api
@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING")
internal actual sealed external interface WorkerAction : JsAny

@Suppress("NOTHING_TO_INLINE", "FunctionName")
@Suppress("NOTHING_TO_INLINE", "FunctionName", "RedundantSuppression")
internal actual inline fun WorkerAction(value: String) = value.toJsString().unsafeCast<WorkerAction>()
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.khronos.webgl.Uint8Array
import org.khronos.webgl.get

internal actual class JsWorkerSqlCursor actual constructor(
private val result: WorkerResult,
private val result: WorkerResult,
) : SqlCursor {
private var currentRow = -1
private val values: JsArray<JsArray<JsAny>> by lazy {
Expand Down

0 comments on commit 824c9fc

Please sign in to comment.