Skip to content

Commit 448283d

Browse files
alex-slynkoCopilot
andcommitted
Skip follower databases with no changes in diff output
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 88c62f3 commit 448283d

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
}
@@ -192,7 +192,7 @@ private async Task<DiffComputationResult> BuildDiffComputationResult(string path
192192
}
193193
}
194194

195-
foreach (var followerDiff in diffData.FollowerDiffs)
195+
foreach (var followerDiff in diffData.FollowerDiffs.Where(f => f.Changes.Count > 0))
196196
{
197197
if (logDetails)
198198
{

0 commit comments

Comments
 (0)