mirror of
https://github.com/gosticks/brew.git
synced 2026-08-15 06:00:28 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user