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
+1 -1
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