Skip to content

Commit

Permalink
review_cask_pr/review: use utils/curl.
Browse files Browse the repository at this point in the history
This will be required after Homebrew/brew#15940 is merged.
  • Loading branch information
MikeMcQuaid authored Sep 5, 2023
1 parent d08b36f commit 83b98a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion review-cask-pr/review.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require "tmpdir"
require "open3"
require "English"
require "utils/curl"

Homebrew.install_gem! "git_diff"
require "git_diff"
Expand All @@ -14,7 +15,7 @@
def diff_for_pull_request(pr)
diff_url = pr.fetch("diff_url")

output, _, status = curl_output("--location", diff_url)
output, _, status = Utils::Curl.curl_output("--location", diff_url)

GitDiff.from_string(output) if status.success?
end
Expand Down

0 comments on commit 83b98a5

Please sign in to comment.