Merge pull request #4253 from xuwei-k/INode-var

use val instead of var
This commit is contained in:
eugene yokota 2018-07-08 23:03:43 -04:00 committed by GitHub
commit cd057209c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ abstract class EvaluateSettings[Scope] {
}): Seq[INode[_]]
}
private[this] var running = new AtomicInteger
private[this] var cancel = new AtomicBoolean(false)
private[this] val running = new AtomicInteger
private[this] val cancel = new AtomicBoolean(false)
def run(implicit delegates: Scope => Seq[Scope]): Settings[Scope] = {
assert(running.get() == 0, "Already running")