Skip to content

Commit aff7ca0

Browse files
committed
Keep calling super to avoid error un Ruby > 3.0
1 parent 5e1ea9a commit aff7ca0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/deprecation_tracker.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ def warn(*messages, uplevel: nil, category: nil, **kwargs)
2828
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0")
2929
super(*messages, uplevel: nil)
3030
else
31-
begin
32-
super(*messages, uplevel: uplevel, category: category, **kwargs)
33-
rescue ArgumentError => e
34-
super(*messages, uplevel: uplevel, category: category)
35-
end
31+
super(*messages)
3632
end
3733
end
3834
end

0 commit comments

Comments
 (0)