Personally I'd prefer:

```scala
val disableJob = (disableAfterFailures > 0) && (job.errorsSinceLastSuccess + 1 >= disableAfterFailures)
```

but that would be sufficient.