diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-05-06 15:44:56 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-05-14 12:55:56 +0200 |
| commit | 5b48cdbad2493c7af9e79bb9996f195ace3123e5 (patch) | |
| tree | e7b254a5e5eb6226017e2a6c607729b8cf3cd82d /odcsim-core | |
| parent | 9ebe07bdbcdd7ca8f8b3c1f76a7f26b560cf2625 (diff) | |
style: Format code according to Ktlint style guide
This change formats the code according to the style guide of Ktlint.
Diffstat (limited to 'odcsim-core')
| -rw-r--r-- | odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt | 1 | ||||
| -rw-r--r-- | odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorPath.kt | 4 |
2 files changed, 2 insertions, 3 deletions
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<T : Any> { */ 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<ActorPath>, 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<ActorPath>, 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 { |
