git grep -lE '\(\&[A-Za-z._]+method\(:' | xargs gsed -i -E 's|\(\&([A-Za-z._]+)public_method\(:([a-z?_]+)\)\)| { \1\2(_1) }|g'

This commit is contained in:
Douglas Eichelberger 2024-03-03 18:55:32 -08:00
parent 53c1107fd2
commit 90996e1997
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ module Cask
.stdout
.split("\n")
.map { |path| root.join(path) }
.reject(&MacOS.public_method(:undeletable?))
.reject { MacOS.undeletable?(_1) }
end
sig { returns(Pathname) }

View File

@ -679,7 +679,7 @@ module Homebrew
class OptionConflictError < UsageError
def initialize(args)
args_list = args.map(&Formatter.public_method(:option))
args_list = args.map { Formatter.option(_1) }
.join(" and ")
super "Options #{args_list} are mutually exclusive."
end