Skip to content

Commit

Permalink
Apply changes from ktLintFormat
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
RBusarow authored and github-actions[bot] committed Nov 14, 2024
1 parent 2663c12 commit be89c02
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ internal suspend fun <
) {
suspendCancellableCoroutine<Unit> { continuation ->
val resumingAction = object : WorkflowAction<PropsT, StateT, OutputT>() {
override fun toString(): String = "sendAndAwaitApplication(${action})"
override fun toString(): String = "sendAndAwaitApplication($action)"

override fun Updater.apply() {
// Don't execute anything if the caller was cancelled while we were in the queue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public abstract class WorkflowAction<in PropsT, StateT, out OutputT> {
*/
public abstract fun Updater.apply()

public override fun toString(): String = "action(${debuggingName})-@${hashCode()}"
public override fun toString(): String = "action($debuggingName)-@${hashCode()}"

public companion object {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ internal class WorkflowNodeTest {
@Test fun send_fails_before_render_pass_completed() {
class TestAction : WorkflowAction<Unit, Nothing, Nothing>() {
override fun Updater.apply() = fail("Expected sink send to fail.")
override val debuggingName: String = "TestAction()"
override val debuggingName: String = "TestAction()"
}

val workflow = Workflow.stateless {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ internal class RealRenderTesterTest {
@Test fun `sending to sink throws when child output expected`() {
class TestAction : WorkflowAction<Unit, Unit, Nothing>() {
override fun Updater.apply() {}
override val debuggingName: String = "TestAction"
override val debuggingName: String = "TestAction"
}

val workflow = Workflow.stateful<Unit, Nothing, Sink<TestAction>>(
Expand Down

0 comments on commit be89c02

Please sign in to comment.