Remove legacy tap pattern.
This commit is contained in:
parent
324988e7a5
commit
7d312e4cca
@ -31,10 +31,6 @@ module Hbc
|
|||||||
"<NONE>"
|
"<NONE>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.legacy_tap_pattern
|
|
||||||
/phinze/
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.error_string(string = "Error")
|
def self.error_string(string = "Error")
|
||||||
Formatter.error("(#{string})")
|
Formatter.error("(#{string})")
|
||||||
end
|
end
|
||||||
@ -59,8 +55,6 @@ module Hbc
|
|||||||
taps.collect do |tap|
|
taps.collect do |tap|
|
||||||
if tap.path.nil? || tap.path.to_s.empty?
|
if tap.path.nil? || tap.path.to_s.empty?
|
||||||
none_string
|
none_string
|
||||||
elsif tap.path.to_s.match(legacy_tap_pattern)
|
|
||||||
tap.path.to_s.concat(" #{error_string "Warning: legacy tap path"}")
|
|
||||||
else
|
else
|
||||||
"#{tap.path} (#{cask_count_for_tap(tap)})"
|
"#{tap.path} (#{cask_count_for_tap(tap)})"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user