fix rubocop Style/EmptyLinesAroundMethodBody cop
This commit is contained in:
parent
b9a757e045
commit
2ac80869dd
|
@ -110,11 +110,6 @@ Style/ElseAlignment:
|
|||
Style/EmptyElse:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
Style/EmptyLinesAroundMethodBody:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 13
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||
|
|
|
@ -31,7 +31,6 @@ class ZipFileGenerator
|
|||
private
|
||||
|
||||
def writeEntries(entries, path, io)
|
||||
|
||||
entries.each do |e|
|
||||
zipFilePath = path == "" ? e : File.join(path, e)
|
||||
diskFilePath = File.join(@inputDir, zipFilePath)
|
||||
|
|
|
@ -74,7 +74,6 @@ class ZipDialog < ZipDialogUI
|
|||
else
|
||||
zipfile { |zf| items.each { |e| zf.extract(e, File.join(d, e)) } }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
slots 'add_files()', 'extract_files()'
|
||||
|
|
|
@ -25,7 +25,6 @@ class ZipFsDirIteratorTest < MiniTest::Test
|
|||
assert_raises(IOError, "closed directory") do
|
||||
@dirIt.tell
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def test_each
|
||||
|
|
|
@ -109,7 +109,6 @@ class ZipOutputStreamTest < MiniTest::Test
|
|||
::Zip::File.open(TEST_ZIP.zip_name) do |zf|
|
||||
assert_equal(stored_text + stored_text2, zf.read(entry_name))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def assert_i_o_error_in_closed_stream
|
||||
|
|
Loading…
Reference in New Issue