mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-05 05:34:10 -05:00
Run rubocop 1.79.2 on tree (#12436)
This commit is contained in:
committed by
GitHub
parent
682abc28b7
commit
2e15479d51
@@ -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.77.0
|
||||
rev: v1.79.2
|
||||
hooks:
|
||||
- id: rubocop
|
||||
- repo: https://github.com/syntaqx/git-hooks
|
||||
|
||||
@@ -416,13 +416,13 @@ unless defined?($__crew_lockfile__) || defined?(CrewLockfile)
|
||||
nil
|
||||
end
|
||||
begin
|
||||
return((Time.now - File.stat(@path).mtime) < @max_age)
|
||||
return ((Time.now - File.stat(@path).mtime) < @max_age)
|
||||
rescue Errno::ENOENT
|
||||
return false
|
||||
end
|
||||
else
|
||||
exist = File.exist?(@path)
|
||||
return(exist ? true : nil)
|
||||
return (exist ? true : nil)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -518,7 +518,7 @@ unless defined?($__crew_lockfile__) || defined?(CrewLockfile)
|
||||
ensure
|
||||
File.umask umask if umask
|
||||
end
|
||||
return(block_given? ? begin; yield f; ensure; f.close; end : f)
|
||||
return (block_given? ? begin; yield f; ensure; f.close; end : f)
|
||||
end
|
||||
|
||||
def touch(path)
|
||||
|
||||
Reference in New Issue
Block a user