fix rubocop Style/RedundantBegin cop
This commit is contained in:
parent
105c2c71b2
commit
735a0553a3
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue