utils: fix frozen string usage in odeprecated.

Fixes https://github.com/Homebrew/brew/issues/6053
This commit is contained in:
Mike McQuaid 2019-04-23 22:32:11 -07:00
parent e5f722ca02
commit 6325db9e37
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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