diff --git a/src/Microsoft.Tye.Core/KubernetesIngressOutput.cs b/src/Microsoft.Tye.Core/KubernetesIngressOutput.cs index 34a14b28..d42b5b85 100644 --- a/src/Microsoft.Tye.Core/KubernetesIngressOutput.cs +++ b/src/Microsoft.Tye.Core/KubernetesIngressOutput.cs @@ -11,18 +11,8 @@ namespace Microsoft.Tye { public KubernetesIngressOutput(string name, YamlDocument yaml) { - if (name is null) - { - throw new ArgumentNullException(nameof(name)); - } - - if (yaml is null) - { - throw new ArgumentNullException(nameof(yaml)); - } - - Name = name; - Yaml = yaml; + Name = name ?? throw new ArgumentNullException(nameof(name)); + Yaml = yaml ?? throw new ArgumentNullException(nameof(yaml)); } public string Name { get; }