Fix reading HOMEBREW_LIVECHECK_WATCHLIST file

This commit is contained in:
Joshua Peek 2020-09-01 11:20:39 -07:00
parent 2b4f3646b7
commit 518af675fb

View File

@ -58,7 +58,7 @@ module Homebrew
args.formulae
elsif File.exist?(WATCHLIST_PATH)
begin
WATCHLIST_PATH.read.lines.map do |line|
Pathname.new(WATCHLIST_PATH).read.lines.map do |line|
next if line.start_with?("#")
Formula[line.strip]