Skip to content

Commit

Permalink
fix: remove newline + indent on dumped empty objects
Browse files Browse the repository at this point in the history
  • Loading branch information
zajrik committed Aug 1, 2021
1 parent e7fff70 commit 1e9e3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/util/functions.dart
Expand Up @@ -164,7 +164,7 @@ String _stringify(dynamic value)

// If the entry value is a Map, split the stringified value by
// newline and indent each line before adding it to the result
if (entry.value is Map)
if (entry.value is Map && (entry.value as Map).isNotEmpty)
{
result += '\n';

Expand Down

0 comments on commit 1e9e3d2

Please sign in to comment.