Skip to content

Commit 11c52a9

Browse files
committed
dont print diff if empty
1 parent e4c0ffc commit 11c52a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internals/discovery/diff.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ func CleanDiff[T comparable](diff Diff[T]) Diff[T] {
4949
}
5050

5151
func logDiff(id string, diff Diff[string]) {
52+
if len(diff.Added) <= 0 && len(diff.Removed) <= 0 {
53+
return
54+
}
55+
5256
addedStr := strings.Join(diff.Added, ",")
5357
removedStr := strings.Join(diff.Removed, ",")
5458

0 commit comments

Comments
 (0)