create: fix brew style

This commit is contained in:
Anatoli Babenia 2025-03-28 07:05:53 +03:00
parent 9f1093266d
commit d90a1990ac

View File

@ -84,7 +84,9 @@ module Homebrew
r.owner = self r.owner = self
filepath = r.fetch filepath = r.fetch
html_doctype_prefix = "<!doctype html" html_doctype_prefix = "<!doctype html"
raise "Downloaded URL is not archive" if File.read(filepath, html_doctype_prefix.length).downcase.start_with?(html_doctype_prefix) if File.read(filepath, html_doctype_prefix.length).downcase.start_with?(html_doctype_prefix)
raise "Downloaded URL is not archive"
end
@sha256 = filepath.sha256 @sha256 = filepath.sha256
end end