diff --git a/src/Microsoft.Tye.Core/ContainerRegistry.cs b/src/Microsoft.Tye.Core/ContainerRegistry.cs index e8c4276c..6ee6efb6 100644 --- a/src/Microsoft.Tye.Core/ContainerRegistry.cs +++ b/src/Microsoft.Tye.Core/ContainerRegistry.cs @@ -10,12 +10,7 @@ namespace Microsoft.Tye { public ContainerRegistry(string hostname) { - if (hostname is null) - { - throw new ArgumentNullException(nameof(hostname)); - } - - Hostname = hostname; + Hostname = hostname ?? throw new ArgumentNullException(nameof(hostname)); } public string Hostname { get; }