Skip to content

Commit 7164671

Browse files
committed
Resolve ktlint violations
1 parent 3cfb832 commit 7164671

File tree

2 files changed

+7
-3
lines changed
  • workflow-trace-viewer/src/jvmMain/kotlin/com/squareup/workflow1/traceviewer

2 files changed

+7
-3
lines changed

workflow-trace-viewer/src/jvmMain/kotlin/com/squareup/workflow1/traceviewer/model/Node.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ public class Node(
2525
if (other !is Node) return false
2626
return this.id == other.id
2727
}
28-
override fun hashCode(): Int { return id.hashCode() }
28+
override fun hashCode(): Int {
29+
return id.hashCode()
30+
}
2931
}

workflow-trace-viewer/src/jvmMain/kotlin/com/squareup/workflow1/traceviewer/util/JsonParser.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ private fun createMoshiAdapter(): JsonAdapter<List<List<Node>>> {
4242
val moshi = Moshi.Builder()
4343
.add(KotlinJsonAdapterFactory())
4444
.build()
45-
val workflowList = Types.newParameterizedType(List::class.java,
46-
Types.newParameterizedType(List::class.java, Node::class.java))
45+
val workflowList = Types.newParameterizedType(
46+
List::class.java,
47+
Types.newParameterizedType(List::class.java, Node::class.java)
48+
)
4749
val adapter: JsonAdapter<List<List<Node>>> = moshi.adapter(workflowList)
4850
return adapter
4951
}

0 commit comments

Comments
 (0)