mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Run rubocop 1.77.0 on tree (#12097)
This commit is contained in:
committed by
GitHub
parent
30bf59d261
commit
820dc4bb16
@@ -3,7 +3,7 @@
|
|||||||
# These pre-commit hooks mirror the Github CI, so running them locally will catch errors earlier.
|
# These pre-commit hooks mirror the Github CI, so running them locally will catch errors earlier.
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/rubocop/rubocop
|
- repo: https://github.com/rubocop/rubocop
|
||||||
rev: v1.76.0
|
rev: v1.77.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: rubocop
|
- id: rubocop
|
||||||
- repo: https://github.com/syntaqx/git-hooks
|
- repo: https://github.com/syntaqx/git-hooks
|
||||||
|
|||||||
@@ -31,6 +31,6 @@ class BasicCompactIndexClient
|
|||||||
return [] if data.nil? || data.empty?
|
return [] if data.nil? || data.empty?
|
||||||
lines = data.split("\n")
|
lines = data.split("\n")
|
||||||
header = lines.index('---')
|
header = lines.index('---')
|
||||||
header ? lines[header + 1..] : lines
|
header ? lines[(header + 1)..] : lines
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user