diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index f7936128e6..a49d360fd0 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -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 diff --git a/Library/Homebrew/dev-cmd/pr-upload.rb b/Library/Homebrew/dev-cmd/pr-upload.rb index db330183af..bdac43d158 100644 --- a/Library/Homebrew/dev-cmd/pr-upload.rb +++ b/Library/Homebrew/dev-cmd/pr-upload.rb @@ -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