brew style --fix

This commit is contained in:
Douglas Eichelberger 2024-11-02 13:43:21 -07:00 committed by Mike McQuaid
parent 9a711cc8dc
commit ffb15ffcf5
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -216,11 +216,11 @@ module Cask
# including both file ownership and whether system permissions are granted.
# Here we just want to check whether sudo would be needed.
looks_writable_without_sudo = if app.owned?
(app.lstat.mode & 0200) != 0
app.lstat.mode.anybits?(0200)
elsif app.grpowned?
(app.lstat.mode & 0020) != 0
app.lstat.mode.anybits?(0020)
else
(app.lstat.mode & 0002) != 0
app.lstat.mode.anybits?(0002)
end
if looks_writable_without_sudo

View File

@ -272,7 +272,7 @@ module PyPI
else
stable = T.must(formula.stable)
url = if stable.specs[:tag].present?
url = "git+#{stable.url}@#{stable.specs[:tag]}"
"git+#{stable.url}@#{stable.specs[:tag]}"
else
stable.url
end