提交 5f406626 编写于 作者: S Stefan Spieker

merged superfluous if with while loop

上级 eedf2a4e
......@@ -730,7 +730,6 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
if (subtask != null) {
Item item = Tasks.getItemOf(subtask);
if (item != null) {
while (item != null) {
if (item == this) {
buildsInProgress.put(e, e.getCurrentExecutable());
......@@ -746,7 +745,6 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
}
}
}
}
if (!buildsInProgress.isEmpty()) {
// give them 15 seconds or so to respond to the interrupt
long expiration = System.nanoTime() + TimeUnit.SECONDS.toNanos(15);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册