Run rubocop 1.79.2 on tree (#12436)

This commit is contained in:
Maximilian Downey Twiss
2025-08-14 19:55:48 +10:00
committed by GitHub
parent 682abc28b7
commit 2e15479d51
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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)