Skip to content

Commit

Permalink
Remove impossible condition
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Feb 16, 2018
1 parent b3f4b14 commit 22fd7b3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/src/main/kotlin/org/sertain/command/Command.kt
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ public class CommandGroup : CommandBridgeMirror() {
if (prev.parallel) continue // Wait until we reach the first sequential entry

val start = prevIndex - trace

if (start == prevIndex) {
error("Invalid command sequence: " +
"parallel commands must have at least one other accomplice.")
}

val parallels = entries.slice(start..prevIndex)
entries.removeAll(parallels)
entries.add(start, Entry(true, CommandGroup().apply {
Expand Down

0 comments on commit 22fd7b3

Please sign in to comment.