diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 0742b49b10..52aa1f00e2 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -112,7 +112,7 @@ module Homebrew style_results = Style.check_style_json(style_files, options) if style_files # load licenses spdx = HOMEBREW_LIBRARY_PATH/"data/spdx.json" - spdx_data = open(spdx, "r") do |file| + spdx_data = File.open(spdx, "r") do |file| JSON.parse(file.read) end new_formula_problem_lines = []