mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -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.
|
||||
repos:
|
||||
- repo: https://github.com/rubocop/rubocop
|
||||
rev: v1.76.0
|
||||
rev: v1.77.0
|
||||
hooks:
|
||||
- id: rubocop
|
||||
- repo: https://github.com/syntaqx/git-hooks
|
||||
|
||||
@@ -31,6 +31,6 @@ class BasicCompactIndexClient
|
||||
return [] if data.nil? || data.empty?
|
||||
lines = data.split("\n")
|
||||
header = lines.index('---')
|
||||
header ? lines[header + 1..] : lines
|
||||
header ? lines[(header + 1)..] : lines
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user