[K/N][samples] Add else branch to make when exhaustive
This commit is contained in:
+1
@@ -177,6 +177,7 @@ fun acceptClientsAndRun(serverFd: Int, block: suspend Client.() -> Unit) {
|
|||||||
waitingFor.continuation.resumeWithException(IOException(getUnixError()))
|
waitingFor.continuation.resumeWithException(IOException(getUnixError()))
|
||||||
waitingFor.continuation.resume(Unit)
|
waitingFor.continuation.resume(Unit)
|
||||||
}
|
}
|
||||||
|
else -> throw Error("No operation for $waitingFor is defined")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user