Skip to content

Commit d998510

Browse files
Surayya Huseyn ZadaSurayya Huseyn Zada
authored andcommitted
trim BaseRegistry before checking null or empty
1 parent 9cea231 commit d998510

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateImageIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void Dispose()
2323
_cancellationTokenSource.Dispose();
2424
}
2525

26-
private bool IsLocalPull => string.IsNullOrEmpty(BaseRegistry);
26+
private bool IsLocalPull => string.IsNullOrEmpty(BaseRegistry.Trim());
2727

2828
public override bool Execute()
2929
{

src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public sealed partial class CreateNewImage : Microsoft.Build.Utilities.Task, ICa
2323
/// </summary>
2424
public string ToolPath { get; set; }
2525

26-
private bool IsLocalPull => string.IsNullOrEmpty(BaseRegistry);
26+
private bool IsLocalPull => string.IsNullOrEmpty(BaseRegistry.Trim());
2727

2828
public void Cancel() => _cancellationTokenSource.Cancel();
2929

0 commit comments

Comments
 (0)