From 3f9525147681fcdd74d7a15d23bfe9f7e1cfeca1 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Wed, 13 Sep 2023 16:24:46 +0200 Subject: [PATCH] fix(dynamite): fix documentation with empty strings Signed-off-by: Nikolas Rimikis --- packages/dynamite/dynamite/lib/src/models/operation.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dynamite/dynamite/lib/src/models/operation.dart b/packages/dynamite/dynamite/lib/src/models/operation.dart index ace1970c..6eb2b6af 100644 --- a/packages/dynamite/dynamite/lib/src/models/operation.dart +++ b/packages/dynamite/dynamite/lib/src/models/operation.dart @@ -38,7 +38,7 @@ abstract class Operation implements Built { Iterable get formattedDescription sync* { yield* descriptionToDocs(summary); - if (summary != null && description != null) { + if (summary != null && summary!.isNotEmpty && description != null && description!.isNotEmpty) { yield docsSeparator; }