Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tooling/lib/tooling/helm3_client.rb')
-rw-r--r--tooling/lib/tooling/helm3_client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tooling/lib/tooling/helm3_client.rb b/tooling/lib/tooling/helm3_client.rb
index 6e4a35e82f1..82ebe3f51dc 100644
--- a/tooling/lib/tooling/helm3_client.rb
+++ b/tooling/lib/tooling/helm3_client.rb
@@ -84,7 +84,7 @@ module Tooling
# method - The Octokit method to use for getting the data.
# args - Arguments to pass to the `helm list` command.
def each_releases_page(args, &block)
- return to_enum(__method__, args) unless block_given?
+ return to_enum(__method__, args) unless block
page = 0
final_args = args.dup
@@ -100,7 +100,7 @@ module Tooling
#
# args - Any arguments to pass to the `helm list` command.
def each_release(args, &block)
- return to_enum(__method__, args) unless block_given?
+ return to_enum(__method__, args) unless block
each_releases_page(args) do |page|
page.releases.each do |release|