diff --git a/KustoSchemaTools/KustoSchemaHandler.cs b/KustoSchemaTools/KustoSchemaHandler.cs index 3141c73..7992244 100644 --- a/KustoSchemaTools/KustoSchemaHandler.cs +++ b/KustoSchemaTools/KustoSchemaHandler.cs @@ -44,7 +44,7 @@ public async Task GenerateStructuredDiff(string path, stri structuredDiffs.Add(ConvertToStructuredDiff(clusterDiff.Cluster.Name, clusterDiff.Cluster.Url, databaseName, clusterDiff.Changes)); } - foreach (var followerDiff in diffData.FollowerDiffs) + foreach (var followerDiff in diffData.FollowerDiffs.Where(f => f.Changes.Count > 0)) { structuredDiffs.Add(ConvertToStructuredDiff(followerDiff.ConnectionKey, followerDiff.ConnectionKey, followerDiff.DatabaseName, followerDiff.Changes)); } @@ -216,7 +216,7 @@ private async Task BuildDiffComputationResult(string path } } - foreach (var followerDiff in diffData.FollowerDiffs) + foreach (var followerDiff in diffData.FollowerDiffs.Where(f => f.Changes.Count > 0)) { if (logDetails) {