Skip to content

Commit 438e64b

Browse files
committed
Remove code for unsupported ruby versions
1 parent 796a92a commit 438e64b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

lib/gitlab.rb

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,10 @@ def self.client(options = {})
2222
Gitlab::Client.new(options)
2323
end
2424

25-
if Gem::Version.new(RUBY_VERSION).release >= Gem::Version.new('3.0.0')
26-
def self.method_missing(method, *, **keywargs, &)
27-
return super unless client.respond_to?(method)
28-
29-
client.send(method, *, **keywargs, &)
30-
end
31-
else
32-
def self.method_missing(method, *, &)
33-
return super unless client.respond_to?(method)
34-
35-
client.send(method, *, &)
36-
end
25+
def self.method_missing(method, *, **keywargs, &)
26+
return super unless client.respond_to?(method)
27+
28+
client.send(method, *, **keywargs, &)
3729
end
3830

3931
# Delegate to Gitlab::Client

0 commit comments

Comments
 (0)