From 5b48cdbad2493c7af9e79bb9996f195ace3123e5 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Mon, 6 May 2019 15:44:56 +0200 Subject: style: Format code according to Ktlint style guide This change formats the code according to the style guide of Ktlint. --- odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt | 1 - odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorPath.kt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'odcsim-core/src') diff --git a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt index b43a1bab..3a704f32 100644 --- a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt +++ b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt @@ -120,4 +120,3 @@ interface ActorContext { */ fun isSync(target: ActorRef<*>): Boolean } - diff --git a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorPath.kt b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorPath.kt index cc3b19af..f51a4fed 100644 --- a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorPath.kt +++ b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorPath.kt @@ -65,7 +65,7 @@ sealed class ActorPath : Comparable, Serializable { require(name.length == 1 || name.indexOf('/', 1) == -1) { "/ may only exist at the beginning of the root actors name" } - require(name.indexOf('#') == -1) { "# may not exist in a path component"} + require(name.indexOf('#') == -1) { "# may not exist in a path component" } } override val parent: ActorPath = this @@ -95,7 +95,7 @@ sealed class ActorPath : Comparable, Serializable { data class Child(override val parent: ActorPath, override val name: String) : ActorPath() { init { require(name.indexOf('/') == -1) { "/ may not exist in a path component" } - require(name.indexOf('#') == -1) { "# may not exist in a path component"} + require(name.indexOf('#') == -1) { "# may not exist in a path component" } } override val root: Root by lazy { -- cgit v1.2.3