Skip to content

Commit 70432b8

Browse files
committed
Minor readability tweak to paranthesizing in if condition
1 parent 09c29b8 commit 70432b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/java/org/jruby/ir/dataflow/analyses/LoadLocalVarPlacementNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ public void addLoads(Map<Operand, Operand> varRenameMap) {
198198
}
199199
it.previous();
200200
}
201-
} else if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR)
202-
|| i.getOperation() == Operation.THREAD_POLL) {
201+
} else if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR
202+
|| i.getOperation() == Operation.THREAD_POLL)) {
203203
// 1. Global-var tracing can execute closures set up in previous trace-var calls
204204
// in which case we would have the 'scopeBindingHasEscaped' flag set to true.
205205
// 2. Threads can update bindings, so we treat thread poll boundaries the same way.

core/src/main/java/org/jruby/ir/dataflow/analyses/StoreLocalVarPlacementNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ public boolean addStores(Map<Operand, Operand> varRenameMap, Set<LocalVariable>
260260
dirtyVars.clear();
261261
}
262262

263-
if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR)
264-
|| i.getOperation() == Operation.THREAD_POLL) {
263+
if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR
264+
|| i.getOperation() == Operation.THREAD_POLL)) {
265265
// 1. Global-var tracing can execute closures set up in previous trace-var calls
266266
// in which case we would have the 'scopeBindingHasEscaped' flag set to true.
267267
// 2. Threads can update bindings, so we treat thread poll boundaries the same way.

0 commit comments

Comments
 (0)