Skip to content

Commit a592504

Browse files
committed
Fix Style/RedundantReturn Rubocop offences.
1 parent 556f2c3 commit a592504

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,3 @@ Style/FileRead:
4444
Style/OptionalBooleanParameter:
4545
Exclude:
4646
- 'lib/zip/bzip2/libbz2.rb'
47-
48-
# Offense count: 1
49-
# This cop supports safe autocorrection (--autocorrect).
50-
# Configuration parameters: AllowMultipleReturnValues.
51-
Style/RedundantReturn:
52-
Exclude:
53-
- 'lib/zip/bzip2/decompressor.rb'

lib/zip/bzip2/decompressor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def eof
2929
private
3030

3131
def return_value_on_eof(length)
32-
return '' if length.nil? || length.zero?
32+
'' if length.nil? || length.zero?
3333
end
3434

3535
def fill_buffer(min_length)

0 commit comments

Comments
 (0)