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
|
|
@ -143,8 +143,8 @@ private[akka] class ClusterReadView(cluster: Cluster) extends Closeable {
|
|||
/**
|
||||
* Unsubscribe to cluster events.
|
||||
*/
|
||||
def close(): Unit = if (!eventBusListener.isTerminated) {
|
||||
eventBusListener ! PoisonPill
|
||||
}
|
||||
def close(): Unit =
|
||||
if (!eventBusListener.isTerminated)
|
||||
eventBusListener ! PoisonPill
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue