From 75ecbae4071b207691690a4a57ae1a08ffd8b2b6 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Fri, 19 Jan 2024 13:03:26 +0100 Subject: [PATCH] Old ruby (#2902) * Revert "L #-: Use newer argument forwarding syntax" This reverts commit ca4645f30026403cbe4d8af6a61d10ba158c427b. * L #-: Disable Style/ArgumentsForw. due older ruby --- share/linters/.rubocop.yml | 2 +- src/oca/ruby/opennebula/flow/service_pool.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/linters/.rubocop.yml b/share/linters/.rubocop.yml index c980ff4ff6..22d11bbe01 100644 --- a/share/linters/.rubocop.yml +++ b/share/linters/.rubocop.yml @@ -732,7 +732,7 @@ Style/UnpackFirst: Enabled: False Style/ArgumentsForwarding: - Enabled: true + Enabled: False Style/CollectionCompact: Enabled: true diff --git a/src/oca/ruby/opennebula/flow/service_pool.rb b/src/oca/ruby/opennebula/flow/service_pool.rb index 9a7eb57f1b..0eecbdc880 100644 --- a/src/oca/ruby/opennebula/flow/service_pool.rb +++ b/src/oca/ruby/opennebula/flow/service_pool.rb @@ -102,10 +102,10 @@ module OpenNebula @one_pool.to_json end - def each(...) + def each(&block) return if @one_pool.nil? - @one_pool.each(...) + @one_pool.each(&block) end # Iterates over pool pages