fix rubocop Style/RedundantBegin cop

This commit is contained in:
Pavel.Lobashov 2015-03-22 19:33:44 +03:00
parent 105c2c71b2
commit 735a0553a3
2 changed files with 4 additions and 11 deletions

View File

@ -250,11 +250,6 @@ Style/PercentLiteralDelimiters:
Style/PredicateName:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantBegin:
Enabled: false
# Offense count: 3
# Configuration parameters: MaxSlashes.
Style/RegexpLiteral:

View File

@ -165,12 +165,10 @@ module Zip
private :get_entry
def unix_mode_cmp(fileName, mode)
begin
e = get_entry(fileName)
e.fstype == 3 && ((e.external_file_attributes >> 16) & mode ) != 0
rescue Errno::ENOENT
false
end
e = get_entry(fileName)
e.fstype == 3 && ((e.external_file_attributes >> 16) & mode ) != 0
rescue Errno::ENOENT
false
end
private :unix_mode_cmp