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