Browse Source

fix(dynamite): fix documentation with empty strings

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/764/head
Nikolas Rimikis 1 year ago
parent
commit
3f95251476
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 2
      packages/dynamite/dynamite/lib/src/models/operation.dart

2
packages/dynamite/dynamite/lib/src/models/operation.dart

@ -38,7 +38,7 @@ abstract class Operation implements Built<Operation, OperationBuilder> {
Iterable<String> get formattedDescription sync* { Iterable<String> get formattedDescription sync* {
yield* descriptionToDocs(summary); yield* descriptionToDocs(summary);
if (summary != null && description != null) { if (summary != null && summary!.isNotEmpty && description != null && description!.isNotEmpty) {
yield docsSeparator; yield docsSeparator;
} }

Loading…
Cancel
Save