Skip to content

Commit e53a8d5

Browse files
committed
Pass block through for Dir#chdir
1 parent a7679ee commit e53a8d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/java/org/jruby/RubyDir.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ public static IRubyObject fchdir(ThreadContext context, IRubyObject dirClass, IR
496496
}
497497

498498
@JRubyMethod(name = "chdir")
499-
public IRubyObject chdir(ThreadContext context) {
500-
return chdir(context, this.getMetaClass(), path, Block.NULL_BLOCK);
499+
public IRubyObject chdir(ThreadContext context, Block block) {
500+
return chdir(context, this.getMetaClass(), path, block);
501501
}
502502

503503
@Deprecated(since = "10.0")

0 commit comments

Comments
 (0)