Style change of def starting with if

* When a def starts with if and is not a oneliner the if
  should be on a new line.
* The reason is that it might be easy to miss the if when
  reading the code.
This commit is contained in:
Patrik Nordwall 2013-01-17 14:00:01 +01:00
parent 1557f0c75b
commit 5dc108567d
27 changed files with 271 additions and 244 deletions

View file

@ -435,11 +435,12 @@ object StressMultiJvmSpec extends MultiNodeConfig {
case RetryTick resend()
}
def done(replyTo: ActorRef): Unit = if (outstanding.isEmpty) {
val duration = (System.nanoTime - startTime).nanos
replyTo ! WorkResult(duration, sendCounter, ackCounter)
context stop self
}
def done(replyTo: ActorRef): Unit =
if (outstanding.isEmpty) {
val duration = (System.nanoTime - startTime).nanos
replyTo ! WorkResult(duration, sendCounter, ackCounter)
context stop self
}
def sendJobs(): Unit = {
0 until settings.workBatchSize foreach { _