Skip to content

Commit 7b09eb9

Browse files
Surayya Huseyn ZadaSurayya Huseyn Zada
authored andcommitted
refactoring
1 parent 0c9bdd1 commit 7b09eb9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Containers/Microsoft.NET.Build.Containers/ImagePublisher.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ await PushToLocalRegistryAsync(
3030
BuildEngine,
3131
telemetry,
3232
cancellationToken,
33-
destinationImageReference.LocalRegistry!.LoadAsync,
34-
Strings.ContainerBuilder_ImageUploadedToLocalDaemon).ConfigureAwait(false);
33+
destinationImageReference.LocalRegistry!.LoadAsync).ConfigureAwait(false);
3534
break;
3635
case DestinationImageReferenceKind.RemoteRegistry:
3736
await PushToRemoteRegistryAsync(
@@ -74,7 +73,6 @@ await PushToLocalRegistryAsync(
7473
telemetry,
7574
cancellationToken,
7675
destinationImageReference.LocalRegistry!.LoadAsync,
77-
Strings.ContainerBuilder_ImageUploadedToLocalDaemon,
7876
logWarningForMultiArch : true).ConfigureAwait(false);
7977
break;
8078
case DestinationImageReferenceKind.RemoteRegistry:
@@ -113,7 +111,6 @@ private static async Task PushToLocalRegistryAsync<T>(
113111
Telemetry telemetry,
114112
CancellationToken cancellationToken,
115113
Func<T, SourceImageReference, DestinationImageReference, CancellationToken, Task> loadFunc,
116-
string successMessage,
117114
bool logWarningForMultiArch = false)
118115
{
119116
ILocalRegistry localRegistry = destinationImageReference.LocalRegistry!;
@@ -128,7 +125,7 @@ private static async Task PushToLocalRegistryAsync<T>(
128125
await loadFunc(image, sourceImageReference, destinationImageReference, cancellationToken).ConfigureAwait(false);
129126
if (BuildEngine != null)
130127
{
131-
Log.LogMessage(MessageImportance.High, successMessage, destinationImageReference, localRegistry);
128+
Log.LogMessage(MessageImportance.High, Strings.ContainerBuilder_ImageUploadedToLocalDaemon, destinationImageReference, localRegistry);
132129
}
133130
}
134131
catch (ContainerHttpException e)

0 commit comments

Comments
 (0)