Fix brew typecheck

This commit is contained in:
Rylan Polster 2021-12-23 14:58:51 -05:00
parent 2e6b6ab3a2
commit 2e4185a525
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -56,7 +56,7 @@ module Utils
errors["`paths` (first) parameter"] = ["`paths` was empty"] if paths.blank?
Array(paths).each do |path|
str = File.binread(path) || ""
str = File.binread(path)
s = StringInreplaceExtension.new(str)
if before.nil? && after.nil?
@ -75,7 +75,7 @@ module Utils
# @api private
def inreplace_pairs(path, replacement_pairs, read_only_run: false, silent: false)
str = File.binread(path) || ""
str = File.binread(path)
contents = StringInreplaceExtension.new(str)
replacement_pairs.each do |old, new|
ohai "replace #{old.inspect} with #{new.inspect}" unless silent