Skip to content

Commit adce341

Browse files
authored
Merge pull request #166 from github/skip-empty-follower-diffs
Skip follower databases with no changes in diff output
2 parents 2c7d6d1 + 4f5d632 commit adce341

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

KustoSchemaTools/KustoSchemaHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public async Task<StructuredDiffResult> GenerateStructuredDiff(string path, stri
4444
structuredDiffs.Add(ConvertToStructuredDiff(clusterDiff.Cluster.Name, clusterDiff.Cluster.Url, databaseName, clusterDiff.Changes));
4545
}
4646

47-
foreach (var followerDiff in diffData.FollowerDiffs)
47+
foreach (var followerDiff in diffData.FollowerDiffs.Where(f => f.Changes.Count > 0))
4848
{
4949
structuredDiffs.Add(ConvertToStructuredDiff(followerDiff.ConnectionKey, followerDiff.ConnectionKey, followerDiff.DatabaseName, followerDiff.Changes));
5050
}
@@ -216,7 +216,7 @@ private async Task<DiffComputationResult> BuildDiffComputationResult(string path
216216
}
217217
}
218218

219-
foreach (var followerDiff in diffData.FollowerDiffs)
219+
foreach (var followerDiff in diffData.FollowerDiffs.Where(f => f.Changes.Count > 0))
220220
{
221221
if (logDetails)
222222
{

0 commit comments

Comments
 (0)