File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
lib/puppet/provider/logical_volume Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -216,12 +216,6 @@ Style/OptionalBooleanParameter:
216216 - ' spec/spec_helper_acceptance_local.rb'
217217 - ' tests/beaker/lib/lvm_helper.rb'
218218
219- # Offense count: 2
220- # This cop supports safe autocorrection (--autocorrect).
221- # Configuration parameters: AllowMultipleReturnValues.
222- Style/RedundantReturn :
223- Exclude :
224- - ' lib/puppet/provider/logical_volume/lvm.rb'
225219
226220# Offense count: 1
227221# This cop supports unsafe autocorrection (--autocorrect-all).
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ def size
179179 return unless raw =~ %r{\s +(\d +)\. (\d +)#{ unit } }i
180180 return Regexp . last_match ( 1 ) + unit . capitalize if Regexp . last_match ( 2 ) . to_i . zero?
181181
182- return Regexp . last_match ( 1 ) + '.' + Regexp . last_match ( 2 ) . sub ( %r{0+$} , '' ) + unit . capitalize
182+ Regexp . last_match ( 1 ) + '.' + Regexp . last_match ( 2 ) . sub ( %r{0+$} , '' ) + unit . capitalize
183183 end
184184
185185 def size = ( new_size )
You can’t perform that action at this time.
0 commit comments