Skip to content

Commit 3f009f3

Browse files
committed
Cleanup dead local variable write
1 parent a089f07 commit 3f009f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/truffleruby/cext/ValueWrapperManager.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,7 @@ protected static boolean isSharedObject(ValueWrapper wrapper) {
357357

358358
public static HandleBlock allocateNewBlock(RubyContext context, RubyLanguage language) {
359359
HandleBlockHolder holder = getBlockHolder(context, language);
360-
HandleBlock block = holder.handleBlock;
361-
362-
block = context.getValueWrapperManager().addToBlockMap(context, language);
360+
HandleBlock block = context.getValueWrapperManager().addToBlockMap(context, language);
363361

364362
holder.handleBlock = block;
365363
return block;

0 commit comments

Comments
 (0)