Skip to content

Commit

Permalink
Do not print transfer message when not transferring
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Jun 10, 2019
1 parent 05e4d5d commit 3c26cf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mix/tasks/hex.publish.ex
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ defmodule Mix.Tasks.Hex.Publish do
auth = Mix.Tasks.Hex.auth_info(:write)
Hex.Shell.info("Publishing package...")
create_release(build, organization, auth, opts)
Hex.Shell.info("Transfering ownership to #{owner}...")
transfer_owner(build, owner, auth, opts)

:error ->
Expand Down Expand Up @@ -189,7 +188,6 @@ defmodule Mix.Tasks.Hex.Publish do
create_docs(build, organization, auth, opts)
end

Hex.Shell.info("Transfering ownership to #{owner}...")
transfer_owner(build, owner, auth, opts)

:error ->
Expand Down Expand Up @@ -356,6 +354,7 @@ defmodule Mix.Tasks.Hex.Publish do
end

defp transfer_owner(build, owner, auth, opts) do
Hex.Shell.info("Transfering ownership to #{owner}...")
dry_run? = Keyword.get(opts, :dry_run, false)

if dry_run? do
Expand Down

0 comments on commit 3c26cf1

Please sign in to comment.