use File.open instead of Kernel.open

This commit is contained in:
lionellloh 2020-06-25 05:46:33 +08:00
parent fbd5c32d22
commit 0304545d0c

View File

@ -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 = []