summaryrefslogtreecommitdiff
path: root/lib/bitbucket/collection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/collection.rb')
-rw-r--r--lib/bitbucket/collection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket/collection.rb b/lib/bitbucket/collection.rb
index 9c496daccaa..4e64a3f4616 100644
--- a/lib/bitbucket/collection.rb
+++ b/lib/bitbucket/collection.rb
@@ -13,9 +13,9 @@ module Bitbucket
end
def method_missing(method, *args)
- return super unless self.respond_to?(method)
+ return super unless respond_to?(method)
- self.__send__(method, *args) do |item| # rubocop:disable GitlabSecurity/PublicSend
+ __send__(method, *args) do |item| # rubocop:disable GitlabSecurity/PublicSend
block_given? ? yield(item) : item
end
end