mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
dev-cmd/bump-formula-pr: fix style.
This commit is contained in:
parent
97acfb94ce
commit
3f15e0eef0
@ -436,7 +436,7 @@ module Homebrew
|
|||||||
# If `brew audit` fails, revert the changes made to any formula.
|
# If `brew audit` fails, revert the changes made to any formula.
|
||||||
commits.each do |revert|
|
commits.each do |revert|
|
||||||
revert_formula = Formula[revert[:formula_name]]
|
revert_formula = Formula[revert[:formula_name]]
|
||||||
revert_formula.path.atomic_write(revert[:old_contents]) unless args.dry_run? || args.write_only?
|
revert_formula.path.atomic_write(revert[:old_contents]) if !args.dry_run? && !args.write_only?
|
||||||
revert_alias_rename = revert[:additional_files]
|
revert_alias_rename = revert[:additional_files]
|
||||||
if revert_alias_rename && (source = revert_alias_rename.first) && (destination = revert_alias_rename.last)
|
if revert_alias_rename && (source = revert_alias_rename.first) && (destination = revert_alias_rename.last)
|
||||||
FileUtils.mv source, destination
|
FileUtils.mv source, destination
|
||||||
|
Loading…
x
Reference in New Issue
Block a user