summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-03-22 17:12:32 +0000
committerThom May <thom@chef.io>2018-03-22 17:12:32 +0000
commit80558e9a5bc2454600a406efd69bd827dc7cd1f7 (patch)
tree1e686456d96c14468e77b46edadefaf36cb03b7a /lib
parent9f6f40b1af90fa76b580f1c6163bf3015ca46fdc (diff)
downloadmixlib-log-80558e9a5bc2454600a406efd69bd827dc7cd1f7.tar.gz
fix chefstyle
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/mixlib/log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/log.rb b/lib/mixlib/log.rb
index c605148..cd219ae 100644
--- a/lib/mixlib/log.rb
+++ b/lib/mixlib/log.rb
@@ -189,7 +189,7 @@ module Mixlib
# via public API. In order to reduce amount of impact and
# handle only File type log devices I had to use this method
# to get access to it.
- next unless logdev = logger.instance_variable_get(:"@logdev")
+ next unless (logdev = logger.instance_variable_get(:"@logdev"))
loggers_to_close << logger if logdev.filename
end
loggers_to_close