mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Use short circuit operators when possible
This commit is contained in:
@@ -447,8 +447,8 @@ public class FGViewUpdater extends VisualGraphViewUpdater<FGVertex, FGEdge> {
|
||||
GroupedFunctionGraphVertex groupVertex, Point2D groupVertexLocation,
|
||||
boolean relayoutOverride, boolean animate, boolean isRegroup) {
|
||||
|
||||
boolean doAnimate = animate & isAnimationEnabled(); // never animate when the user has disabled it
|
||||
if (groupVertex.getVertices().size() == 0) {
|
||||
boolean doAnimate = animate && isAnimationEnabled(); // never animate when the user has disabled it
|
||||
if (groupVertex.getVertices().isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user