From 2658e47b1f684387785d7e287a0eb676ccc0e3c5 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Thu, 26 Oct 2023 00:31:24 -0500 Subject: [PATCH] Remove unnecessary cast of kwargs 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 --- core/src/main/java/org/jruby/RubyTime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/jruby/RubyTime.java b/core/src/main/java/org/jruby/RubyTime.java index 5a81b3a78b7b..8d0e8db98bd4 100644 --- a/core/src/main/java/org/jruby/RubyTime.java +++ b/core/src/main/java/org/jruby/RubyTime.java @@ -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"); }