Skip to content

Commit

Permalink
Remove unnecessary cast of kwargs
Browse files Browse the repository at this point in the history
The intent here was to pass in what might be kwargs if the keyword
flag was set, indicating that kwargs were being passed in. This
assumption XXX
  • Loading branch information
headius committed Oct 26, 2023
1 parent eefc0dd commit 2658e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ public IRubyObject initialize(ThreadContext context, IRubyObject[] args) {

int argc = args.length;
if (keywords) {
IRubyObject in = ArgsUtil.extractKeywordArg(context, (RubyHash) args[argc - 1], "in");
IRubyObject in = ArgsUtil.extractKeywordArg(context, args[argc - 1], "in");
if (in != null && argc > 7) {
throw context.runtime.newArgumentError("timezone argument given as positional and keyword arguments");
}
Expand Down

0 comments on commit 2658e47

Please sign in to comment.