Skip to content

Commit 41e213b

Browse files
committed
Fix Style/OptionalBooleanParameter Rubocop offences.
1 parent a592504 commit 41e213b

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,3 @@ Style/FileRead:
3737
- 'test/models/zip/bzip2/decompress_test.rb'
3838
- 'test/models/zip/bzip2/decompressor_test.rb'
3939
- 'test/models/zip/bzip2/libbz2_test.rb'
40-
41-
# Offense count: 1
42-
# Configuration parameters: AllowedMethods.
43-
# AllowedMethods: respond_to_missing?
44-
Style/OptionalBooleanParameter:
45-
Exclude:
46-
- 'lib/zip/bzip2/libbz2.rb'

lib/zip/bzip2/decompress.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def initialize(options = {})
1111
small = options[:small]
1212

1313
@libbz2 = Libbz2.new.tap do |libbz2|
14-
libbz2.decompress_init!(small)
14+
libbz2.decompress_init!(small: small)
1515
end
1616

1717
@finished = false

lib/zip/bzip2/libbz2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def initialize
2727
@stream = FFI::Libbz2::BzStream.new
2828
end
2929

30-
def decompress_init!(small = false)
30+
def decompress_init!(small: false)
3131
result = FFI::Libbz2::BZ2_bzDecompressInit(@stream, 0, small ? 1 : 0)
3232
check_error(result)
3333

0 commit comments

Comments
 (0)