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

merged superfluous if with while loop

上级 eedf2a4e
......@@ -730,18 +730,16 @@ 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());
e.interrupt(Result.ABORTED);
break;
}
if (item.getParent() instanceof Item) {
item = (Item) item.getParent();
} else {
break;
}
while (item != null) {
if (item == this) {
buildsInProgress.put(e, e.getCurrentExecutable());
e.interrupt(Result.ABORTED);
break;
}
if (item.getParent() instanceof Item) {
item = (Item) item.getParent();
} else {
break;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册