Fix Style/MultilineWhenThen cop.
This commit is contained in:
parent
172ab4b567
commit
d42c66ce2c
|
@ -176,12 +176,6 @@ Style/ModuleFunction:
|
|||
Exclude:
|
||||
- 'lib/zip.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/MultilineWhenThen:
|
||||
Exclude:
|
||||
- 'lib/zip/output_stream.rb'
|
||||
|
||||
# Offense count: 56
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
|
@ -150,9 +150,9 @@ module Zip
|
|||
|
||||
def get_compressor(entry, level)
|
||||
case entry.compression_method
|
||||
when Entry::DEFLATED then
|
||||
when Entry::DEFLATED
|
||||
::Zip::Deflater.new(@output_stream, level, @encrypter)
|
||||
when Entry::STORED then
|
||||
when Entry::STORED
|
||||
::Zip::PassThruCompressor.new(@output_stream)
|
||||
else
|
||||
raise ::Zip::CompressionMethodError,
|
||||
|
|
Loading…
Reference in New Issue