Merge pull request #6056 from MikeMcQuaid/utils-odeprecated-frozen

utils: fix frozen string usage in odeprecated.
This commit is contained in:
Mike McQuaid 2019-04-23 23:03:56 -07:00 committed by GitHub
commit 980b66f2e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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