utils/github: tweak search_code style.

As suggested by reitermarkus in
https://github.com/Homebrew/brew/pull/10055#discussion_r545829663
This commit is contained in:
Mike McQuaid 2020-12-18 13:47:57 +00:00
parent be893d5a56
commit 3f2afc0eb2
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -317,7 +317,7 @@ module GitHub
matches.map do |match|
# .sub workaround for GitHub returning preceding /
match["path"] = match["path"].sub(%r{^/}, "")
match["path"] = match["path"].delete_prefix("/")
match
end
end