From 3c26cf1ae147a45d109f70069591e5df711728b3 Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Mon, 10 Jun 2019 19:25:21 +0200 Subject: [PATCH] Do not print transfer message when not transferring --- lib/mix/tasks/hex.publish.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mix/tasks/hex.publish.ex b/lib/mix/tasks/hex.publish.ex index 7fe620fa6..ed55ce352 100644 --- a/lib/mix/tasks/hex.publish.ex +++ b/lib/mix/tasks/hex.publish.ex @@ -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 -> @@ -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 -> @@ -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