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