From b0db9f983297651bac19c9187792f07521cccf57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tino=20V=C3=A1zquez?= Date: Tue, 16 May 2023 22:33:49 +0200 Subject: [PATCH] L #-: Conform with new cops rubocop 1.51.0 --- src/onegate-proxy/onegate-proxy.rb | 2 ++ src/oneprovision/lib/provision/provision_config.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/onegate-proxy/onegate-proxy.rb b/src/onegate-proxy/onegate-proxy.rb index 3f47e04e77..0c4a1cc467 100644 --- a/src/onegate-proxy/onegate-proxy.rb +++ b/src/onegate-proxy/onegate-proxy.rb @@ -105,6 +105,7 @@ class Logger } end + # rubocop:disable Style/ArgumentsForwarding def error(*args, &block) @err.error(*args, &block) end @@ -120,6 +121,7 @@ class Logger def debug(*args, &block) @err.debug(*args, &block) end + # rubocop:enable Style/ArgumentsForwarding end diff --git a/src/oneprovision/lib/provision/provision_config.rb b/src/oneprovision/lib/provision/provision_config.rb index c56487571b..43fcd33ba9 100644 --- a/src/oneprovision/lib/provision/provision_config.rb +++ b/src/oneprovision/lib/provision/provision_config.rb @@ -293,7 +293,7 @@ module OneProvision def validate(check_load = true) self.load if check_load - @config.delete_if {|_k, v| v.nil? } + @config.compact! parse