fix rubocop Style/EmptyElse cop
This commit is contained in:
parent
4b60095371
commit
784e70be2a
|
@ -110,10 +110,6 @@ Style/CommentIndentation:
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 3
|
|
||||||
Style/EmptyElse:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||||
Style/FormatString:
|
Style/FormatString:
|
||||||
|
|
|
@ -32,8 +32,6 @@ module Zip
|
||||||
def delete(entry)
|
def delete(entry)
|
||||||
if @entry_set.delete(to_key(entry))
|
if @entry_set.delete(to_key(entry))
|
||||||
entry
|
entry
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -328,8 +328,6 @@ module Zip
|
||||||
e.extra['UniversalTime'].atime
|
e.extra['UniversalTime'].atime
|
||||||
elsif e.extra.member? 'NTFS'
|
elsif e.extra.member? 'NTFS'
|
||||||
e.extra['NTFS'].atime
|
e.extra['NTFS'].atime
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -339,8 +337,6 @@ module Zip
|
||||||
e.extra['UniversalTime'].ctime
|
e.extra['UniversalTime'].ctime
|
||||||
elsif e.extra.member? 'NTFS'
|
elsif e.extra.member? 'NTFS'
|
||||||
e.extra['NTFS'].ctime
|
e.extra['NTFS'].ctime
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue