graph/db: fix address fetching error

This commit is contained in:
Elle Mouton committed 2025-06-30 18:40:25 +02:00
1 parent 272a2db16c
commit 714e528a3a
2 files changed
+7 -11

No files matched your search

+6
View File
@@ -3619,6 +3619,12 @@ func getNodeAddresses(ctx context.Context, db SQLQueries, nodePub []byte) (bool,
}
}
// If we have no addresses, then we'll return nil instead of an
// empty slice.
if len(addresses) == 0 {
addresses = nil
}
return true, addresses, nil
}