Skip to content

Commit 4a50c77

Browse files
committed
fix: removes useless condition for null check
Signed-off-by: Vincent Biret <[email protected]>
1 parent a6a44a7 commit 4a50c77

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Microsoft.OpenApi/Writers/OpenApiWriterAnyExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ private static void WriteObject(this IOpenApiWriter writer, JsonObject entity)
111111

112112
private static void WritePrimitive(this IOpenApiWriter writer, JsonNode primitive)
113113
{
114-
if (writer == null)
115-
{
116-
Utils.CheckArgumentNull(writer);
117-
}
114+
Utils.CheckArgumentNull(writer);
118115

119116
var valueKind = primitive.GetValueKind();
120117

0 commit comments

Comments
 (0)