Skip to content

Commit e6762e6

Browse files
committed
Consistency
1 parent 7f431aa commit e6762e6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/org/truffleruby/core/queue/SizedQueue.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ public Object poll(long timeoutMilliseconds) throws InterruptedException {
148148
final boolean signalled = ConcurrentOperations.awaitAndCheckInterrupt(canTake, timeoutMilliseconds,
149149
TimeUnit.MILLISECONDS);
150150

151-
if (!signalled) {
152-
// Timed out.
151+
if (!signalled) { // timed out
153152
return null;
154153
}
155154

src/main/java/org/truffleruby/core/queue/UnsizedQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public Object poll(long timeoutMilliseconds) throws InterruptedException {
114114
final boolean signalled = ConcurrentOperations.awaitAndCheckInterrupt(canTake, timeoutMilliseconds,
115115
TimeUnit.MILLISECONDS);
116116

117-
if (!signalled) {
117+
if (!signalled) { // timed out
118118
return null;
119119
}
120120

0 commit comments

Comments
 (0)