Skip to content

Commit b74e620

Browse files
author
adam.gloyne
committed
Remove nullable
1 parent b04e9a8 commit b74e620

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/LEGO.AsyncAPI.Bindings/Sns/Statement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Statement : IAsyncApiExtensible
3333
/// <summary>
3434
/// Specific circumstances under which the policy grants permission.
3535
/// </summary>
36-
public Condition? Condition { get; set; }
36+
public Condition Condition { get; set; }
3737

3838
public IDictionary<string, IAsyncApiExtension> Extensions { get; set; } = new Dictionary<string, IAsyncApiExtension>();
3939

@@ -49,7 +49,7 @@ public void Serialize(IAsyncApiWriter writer)
4949
writer.WriteRequiredObject("principal", this.Principal, (w, t) => t.Serialize(w));
5050
writer.WriteRequiredObject("action", this.Action, (w, t) => t.Value.Write(w));
5151
writer.WriteOptionalObject("resource", this.Resource, (w, t) => t?.Value.Write(w));
52-
writer.WriteOptionalObject("condition", this.Condition, (w, t) => t?.Serialize(w));
52+
writer.WriteOptionalObject("condition", this.Condition, (w, t) => t.Serialize(w));
5353
writer.WriteExtensions(this.Extensions);
5454
writer.WriteEndObject();
5555
}

src/LEGO.AsyncAPI.Bindings/Sqs/Statement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class Statement : IAsyncApiExtensible
3434
/// <summary>
3535
/// Specific circumstances under which the policy grants permission.
3636
/// </summary>
37-
public Condition? Condition { get; set; }
37+
public Condition Condition { get; set; }
3838

3939
public IDictionary<string, IAsyncApiExtension> Extensions { get; set; } = new Dictionary<string, IAsyncApiExtension>();
4040

@@ -50,7 +50,7 @@ public void Serialize(IAsyncApiWriter writer)
5050
writer.WriteRequiredObject("principal", this.Principal, (w, t) => t.Serialize(w));
5151
writer.WriteRequiredObject("action", this.Action, (w, t) => t.Value.Write(w));
5252
writer.WriteOptionalObject("resource", this.Resource, (w, t) => t?.Value.Write(w));
53-
writer.WriteOptionalObject("condition", this.Condition, (w, t) => t?.Serialize(w));
53+
writer.WriteOptionalObject("condition", this.Condition, (w, t) => t.Serialize(w));
5454
writer.WriteExtensions(this.Extensions);
5555
writer.WriteEndObject();
5656
}

0 commit comments

Comments
 (0)