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:
parent
1557f0c75b
commit
5dc108567d
27 changed files with 271 additions and 244 deletions
|
|
@ -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 { _ ⇒
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue