mirror of https://github.com/sbt/sbt.git
[2.x] refactor: Remove unnecessary unchecked annotation (#8926)
This commit is contained in:
parent
0608a660da
commit
b8ab0031f1
|
|
@ -195,7 +195,7 @@ private[sbt] abstract class AbstractBackgroundJobService extends BackgroundJobSe
|
|||
override def shutdown(): Unit = {
|
||||
val deadline = 10.seconds.fromNow
|
||||
while (jobSet.nonEmpty && !deadline.isOverdue) {
|
||||
jobSet.headOption.foreach { case handle: ThreadJobHandle @unchecked =>
|
||||
jobSet.headOption.foreach { handle =>
|
||||
if (handle.job.isRunning()) {
|
||||
handle.job.shutdown()
|
||||
handle.job.awaitTerminationTry(10.seconds)
|
||||
|
|
|
|||
Loading…
Reference in New Issue