Fix Style/RedundantBegin cop.
This commit is contained in:
parent
1b3f4bb7b8
commit
efa23a84ba
|
@ -176,12 +176,6 @@ Style/OptionalBooleanParameter:
|
|||
- 'lib/zip/file.rb'
|
||||
- 'lib/zip/output_stream.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantBegin:
|
||||
Exclude:
|
||||
- 'lib/zip/dos_time.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantFileExtensionInRequire:
|
||||
|
|
|
@ -52,10 +52,9 @@ module Zip
|
|||
day = (0b11111 & bin_dos_date)
|
||||
month = (0b111100000 & bin_dos_date) >> 5
|
||||
year = ((0b1111111000000000 & bin_dos_date) >> 9) + 1980
|
||||
begin
|
||||
|
||||
local(year, month, day, hour, minute, second)
|
||||
end
|
||||
end
|
||||
|
||||
if defined? JRUBY_VERSION && Gem::Version.new(JRUBY_VERSION) < '9.2.18.0'
|
||||
module JRubyCMP # :nodoc:
|
||||
|
|
Loading…
Reference in New Issue