merged superfluous if with while loop
@@ -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);
