From 0304545d0cb334c5f24be63e1c639ff8989f7226 Mon Sep 17 00:00:00 2001 From: lionellloh Date: Thu, 25 Jun 2020 05:46:33 +0800 Subject: [PATCH] use File.open instead of Kernel.open --- Library/Homebrew/dev-cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []