fix review comment .size>0 => .nonEmpty
This commit is contained in:
parent
11601c2926
commit
40654227b7
2 changed files with 3 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ object FaultHandlingStrategy {
|
||||||
case object Restart extends Action
|
case object Restart extends Action
|
||||||
case object Stop extends Action
|
case object Stop extends Action
|
||||||
case object Escalate extends Action
|
case object Escalate extends Action
|
||||||
|
|
||||||
// Java API
|
// Java API
|
||||||
def resume = Resume
|
def resume = Resume
|
||||||
def restart = Restart
|
def restart = Restart
|
||||||
|
|
|
||||||
|
|
@ -157,8 +157,8 @@ class RemoteSystemDaemon(remote: Remote, _path: ActorPath, _parent: InternalActo
|
||||||
import remote.remoteAddress
|
import remote.remoteAddress
|
||||||
|
|
||||||
message.getActorPath match {
|
message.getActorPath match {
|
||||||
case RemoteActorPath(`remoteAddress`, elems) if elems.size > 0 && elems.head == "remote" ⇒
|
case RemoteActorPath(`remoteAddress`, elems) if elems.nonEmpty && elems.head == "remote" ⇒
|
||||||
// TODO RK canonicalize path so as not to duplicate it always
|
// TODO RK canonicalize path so as not to duplicate it always #1446
|
||||||
val subpath = elems.drop(1)
|
val subpath = elems.drop(1)
|
||||||
val path = remote.remoteDaemon.path / subpath
|
val path = remote.remoteDaemon.path / subpath
|
||||||
val supervisor = remote.system.actorFor(message.getSupervisor).asInstanceOf[InternalActorRef]
|
val supervisor = remote.system.actorFor(message.getSupervisor).asInstanceOf[InternalActorRef]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue