Skip to content

Commit 17a3db4

Browse files
jordanbreen28jordanbreen28
authored andcommitted
(CONT-971) - Correct Style/RedundantReturn
1 parent ac3b1f7 commit 17a3db4

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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).

lib/puppet/provider/logical_volume/lvm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)