diff options
author | Azul <azul@riseup.net> | 2017-09-23 11:07:32 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-09-23 16:53:27 +0200 |
commit | 40916407517f4bdb75a295caf29e02d4f403349b (patch) | |
tree | 8219567c0ecdf583fdd916594ec7915ab9eb2f19 /lib/kernel_ext.rb | |
parent | 22c6c80310a8d3d3abbd1006598b4fbaec98ffd0 (diff) |
style: rubocop mostly auto-correct
Diffstat (limited to 'lib/kernel_ext.rb')
-rw-r--r-- | lib/kernel_ext.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |