GitLab upgraded to 13.7.4-ee.0 - changelog: https://gitlab.com/gitlab-org/gitlab/blob/master/CHANGELOG-EE.md

Commit cda4dd97 authored by Xorima Bot's avatar Xorima Bot

Cookstyle 6.2.9 Fixes

Issues found and resolved with: libraries/helpers.rb

 - 31:18 convention: Style/HashEachMethods - Use `each_key` instead of `keys.each`.
Signed-off-by: default avatarXorima Bot <xorimabot@avon-lea.co.uk>
parent 00e28e9c
# Changelog # Changelog
## Unreleased
- resolved cookstyle error: libraries/helpers.rb:31:18 convention: `Style/HashEachMethods`
## [Unreleased] ## [Unreleased]
### Added ### Added
......
...@@ -28,7 +28,7 @@ class Chef ...@@ -28,7 +28,7 @@ class Chef
def self.object_to_ossec(object) def self.object_to_ossec(object)
case object case object
when Hash when Hash
object.keys.each do |k| object.each_key do |k|
if k == 'content!' if k == 'content!'
object[:content!] = object_to_ossec(object.delete(k)) object[:content!] = object_to_ossec(object.delete(k))
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment