From 40916407517f4bdb75a295caf29e02d4f403349b Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 23 Sep 2017 11:07:32 +0200 Subject: style: rubocop mostly auto-correct --- lib/kernel_ext.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/kernel_ext.rb') diff --git a/lib/kernel_ext.rb b/lib/kernel_ext.rb index b5b58e0..3b408e3 100644 --- a/lib/kernel_ext.rb +++ b/lib/kernel_ext.rb @@ -20,7 +20,8 @@ module Kernel # Sets $VERBOSE for the duration of the block and back to its original # value afterwards. def with_warnings(flag) - old_verbose, $VERBOSE = $VERBOSE, flag + old_verbose = $VERBOSE + $VERBOSE = flag yield ensure $VERBOSE = old_verbose -- cgit v1.2.3