Use File.read over IO.read
This commit is contained in:
parent
586d25a522
commit
1feed79e69
@ -567,7 +567,7 @@ module Homebrew
|
||||
|
||||
def parse_json_files(filenames)
|
||||
filenames.map do |filename|
|
||||
JSON.parse(IO.read(filename))
|
||||
JSON.parse(File.read(filename))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ module Homebrew
|
||||
odie "No bottle JSON files found in the current working directory" if json_files.empty?
|
||||
|
||||
bottles_hash = json_files.reduce({}) do |hash, json_file|
|
||||
hash.deep_merge(JSON.parse(IO.read(json_file)))
|
||||
hash.deep_merge(JSON.parse(File.read(json_file)))
|
||||
end
|
||||
|
||||
if args.root_url
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user