Autocorrect new RuboCop 0.55.0 style violations.
This commit is contained in:
parent
5cf8fa5727
commit
0a00312b71
@ -22,7 +22,7 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
path = if timestamp == :latest
|
path = if timestamp == :latest
|
||||||
Pathname.glob(metadata_versioned_path(version: version).join("*")).sort.last
|
Pathname.glob(metadata_versioned_path(version: version).join("*")).max
|
||||||
else
|
else
|
||||||
timestamp = new_timestamp if timestamp == :now
|
timestamp = new_timestamp if timestamp == :now
|
||||||
metadata_versioned_path(version: version).join(timestamp)
|
metadata_versioned_path(version: version).join(timestamp)
|
||||||
|
|||||||
@ -52,7 +52,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def option_to_description(*names)
|
def option_to_description(*names)
|
||||||
names.map { |name| name.to_s.sub(/\A--?/, "").tr("-", " ") }.sort.last
|
names.map { |name| name.to_s.sub(/\A--?/, "").tr("-", " ") }.max
|
||||||
end
|
end
|
||||||
|
|
||||||
def parse(cmdline_args = ARGV)
|
def parse(cmdline_args = ARGV)
|
||||||
|
|||||||
@ -1131,7 +1131,7 @@ class Formula
|
|||||||
return false unless old_rack.directory?
|
return false unless old_rack.directory?
|
||||||
return false if old_rack.subdirs.empty?
|
return false if old_rack.subdirs.empty?
|
||||||
|
|
||||||
tap == Tab.for_keg(old_rack.subdirs.sort.first).tap
|
tap == Tab.for_keg(old_rack.subdirs.min).tap
|
||||||
end
|
end
|
||||||
|
|
||||||
# @private
|
# @private
|
||||||
|
|||||||
@ -129,7 +129,7 @@ class Keg
|
|||||||
f_kegs = kegs_by_source[[f.name, f.tap]]
|
f_kegs = kegs_by_source[[f.name, f.tap]]
|
||||||
next unless f_kegs
|
next unless f_kegs
|
||||||
|
|
||||||
f_kegs.sort_by(&:version).last
|
f_kegs.max_by(&:version)
|
||||||
end.compact
|
end.compact
|
||||||
|
|
||||||
next if required_kegs.empty?
|
next if required_kegs.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user