Don't check dry run status where it is not needed

This commit is contained in:
Maxim Belkin 2019-11-20 12:38:50 -06:00
parent ba7a05a919
commit 1a0361a57d
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -383,7 +383,7 @@ module Homebrew
def forked_repo_info(tap_full_name)
response = GitHub.create_fork(tap_full_name)
rescue GitHub::AuthenticationFailedError, *GitHub.api_errors => e
formula.path.atomic_write(backup_file) unless args.dry_run?
formula.path.atomic_write(backup_file)
odie "Unable to fork: #{e.message}!"
else
# GitHub API responds immediately but fork takes a few seconds to be ready.