Skip to content

Commit 26bf9dd

Browse files
committed
Don't return early for required map
1 parent 57c4095 commit 26bf9dd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/LEGO.AsyncAPI/Writers/AsyncApiWriterExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,7 @@ public static void WriteRequiredMap<T>(
285285
Action<IAsyncApiWriter, string, T> action)
286286
where T : IAsyncApiElement
287287
{
288-
if (elements != null && elements.Any())
289-
{
290-
writer.WriteMapInternal(name, elements, action);
291-
}
288+
writer.WriteMapInternal(name, elements, action);
292289
}
293290

294291
/// <summary>

0 commit comments

Comments
 (0)