提交 5feda70f 编写于 作者: J Josh Soref

Simplify end of function return logic

上级 301826ab
......@@ -1450,11 +1450,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
}
}
//We can roam, check that the master is set to be used as much as possible, and not tied jobs only.
if(Jenkins.getInstance().getMode() == Mode.EXCLUSIVE) {
return true;
} else {
return false;
}
return Jenkins.getInstance().getMode() == Mode.EXCLUSIVE;
}
}
return true;
......
......@@ -79,9 +79,7 @@ public class BooleanParameterValue extends ParameterValue {
BooleanParameterValue that = (BooleanParameterValue) o;
if (value != that.value) return false;
return true;
return value == that.value;
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册