From 518af675fb5e2c7632e4538ccb812931cf4d5a3a Mon Sep 17 00:00:00 2001
From: Joshua Peek <josh@joshpeek.com>
Date: Tue, 1 Sep 2020 11:20:39 -0700
Subject: [PATCH] Fix reading HOMEBREW_LIVECHECK_WATCHLIST file

---
 Library/Homebrew/dev-cmd/livecheck.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Homebrew/dev-cmd/livecheck.rb b/Library/Homebrew/dev-cmd/livecheck.rb
index cc01e76c17..ddc41f20a5 100644
--- a/Library/Homebrew/dev-cmd/livecheck.rb
+++ b/Library/Homebrew/dev-cmd/livecheck.rb
@@ -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]
-- 
GitLab