[style] Combine rendundant if
@@ -231,11 +231,9 @@ public class OCLCommandQueue extends TornadoLogger {
private void findNextEventSlot() {
eventIndex = retain.nextClearBit(eventIndex + 1);
- if (CIRCULAR_EVENTS) {
- if (eventIndex >= events.length) {
+ if (CIRCULAR_EVENTS && (eventIndex >= events.length)) {
eventIndex = 0;
}
- }
guarantee(eventIndex != -1, "event window is full (retained=%d, capacity=%d)", retain.cardinality(), EVENT_WINDOW);
}
