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:
parent
be893d5a56
commit
3f2afc0eb2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user