Browse Source

refactored KubernetesIngressOutput.cs use of language feature (#809)

pull/840/head
Marvin Huber 6 years ago
committed by GitHub
parent
commit
defd76dadc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      src/Microsoft.Tye.Core/KubernetesIngressOutput.cs

14
src/Microsoft.Tye.Core/KubernetesIngressOutput.cs

@ -11,18 +11,8 @@ namespace Microsoft.Tye
{ {
public KubernetesIngressOutput(string name, YamlDocument yaml) public KubernetesIngressOutput(string name, YamlDocument yaml)
{ {
if (name is null) Name = name ?? throw new ArgumentNullException(nameof(name));
{ Yaml = yaml ?? throw new ArgumentNullException(nameof(yaml));
throw new ArgumentNullException(nameof(name));
}
if (yaml is null)
{
throw new ArgumentNullException(nameof(yaml));
}
Name = name;
Yaml = yaml;
} }
public string Name { get; } public string Name { get; }

Loading…
Cancel
Save