Browse Source
refactored KubernetesIngressOutput.cs use of language feature (#809)
pull/840/head
Marvin Huber
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
12 deletions
-
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; } |
|
|
|
|