utils: fix frozen string usage in odeprecated.
Fixes https://github.com/Homebrew/brew/issues/6053
This commit is contained in:
parent
e5f722ca02
commit
6325db9e37
@ -107,7 +107,7 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
|
|||||||
next unless match = line.match(HOMEBREW_TAP_PATH_REGEX)
|
next unless match = line.match(HOMEBREW_TAP_PATH_REGEX)
|
||||||
|
|
||||||
tap = Tap.fetch(match[:user], match[:repo])
|
tap = Tap.fetch(match[:user], match[:repo])
|
||||||
tap_message = "\nPlease report this to the #{tap} tap"
|
tap_message = +"\nPlease report this to the #{tap} tap"
|
||||||
tap_message += ", or even better, submit a PR to fix it" if replacement
|
tap_message += ", or even better, submit a PR to fix it" if replacement
|
||||||
tap_message << ":\n #{line.sub(/^(.*\:\d+)\:.*$/, '\1')}\n\n"
|
tap_message << ":\n #{line.sub(/^(.*\:\d+)\:.*$/, '\1')}\n\n"
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user