From c83de53a601ff4437427262393ab907c9ee1b38a Mon Sep 17 00:00:00 2001 From: RBusarow Date: Thu, 14 Nov 2024 19:46:18 +0000 Subject: [PATCH] Apply changes from ktLintFormat Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt | 2 +- .../kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt | 2 +- .../java/com/squareup/workflow1/testing/RealRenderTesterTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt index 2557e06fd..91ad0ec54 100644 --- a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt +++ b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt @@ -63,7 +63,7 @@ public abstract class WorkflowAction { */ public abstract fun Updater.apply() - public final override fun toString(): String = "action(${name})-@${hashCode()}" + public final override fun toString(): String = "action($name)-@${hashCode()}" public companion object { /** diff --git a/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt b/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt index 3de9e20cf..ad9ce4352 100644 --- a/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt +++ b/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt @@ -1151,7 +1151,7 @@ internal class WorkflowNodeTest { @Test fun send_fails_before_render_pass_completed() { class TestAction : WorkflowAction() { override fun Updater.apply() = fail("Expected sink send to fail.") - override val name: String = "TestAction()" + override val name: String = "TestAction()" } val workflow = Workflow.stateless { diff --git a/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt b/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt index d111252cb..2377c54f2 100644 --- a/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt +++ b/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt @@ -188,7 +188,7 @@ internal class RealRenderTesterTest { @Test fun `sending to sink throws when child output expected`() { class TestAction : WorkflowAction() { override fun Updater.apply() {} - override val name: String = "TestAction" + override val name: String = "TestAction" } val workflow = Workflow.stateful>(