1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00
* Revert "L #-: Use newer argument forwarding syntax"

This reverts commit ca4645f30026403cbe4d8af6a61d10ba158c427b.

* L #-: Disable Style/ArgumentsForw. due older ruby

(cherry picked from commit 75ecbae4071b207691690a4a57ae1a08ffd8b2b6)
This commit is contained in:
Jan Orel 2024-01-19 13:03:26 +01:00 committed by Ruben S. Montero
parent 6c2329ed73
commit 503bef48a3
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 3 additions and 3 deletions

View File

@ -732,7 +732,7 @@ Style/UnpackFirst:
Enabled: False
Style/ArgumentsForwarding:
Enabled: true
Enabled: False
Style/CollectionCompact:
Enabled: true

View File

@ -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