Skip to content

Commit e71b147

Browse files
authored
formula_creator: tweak variable name
1 parent 87e5736 commit e71b147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Library/Homebrew/formula_creator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def write_formula!
8686
html_doctype_prefix = "<!doctype html"
8787
# Number of bytes to read from file start to ensure it is not HTML.
8888
# HTML may start with arbitrary number of whitespace lines.
89-
head_len = 100
90-
if File.read(filepath, head_len).strip.downcase.start_with?(html_doctype_prefix)
89+
bytes_to_read = 100
90+
if File.read(filepath, bytes_to_read).strip.downcase.start_with?(html_doctype_prefix)
9191
raise "Downloaded URL is not archive"
9292
end
9393

0 commit comments

Comments
 (0)