Added source and user marks to opportunities type. Any ignored errors are deferred to //nolint with a comment instead of being silently dropped

This commit is contained in:
bwilliams committed 2026-10-13 12:40:11 +01:00
1 parent 6e6dec68c0
commit 9b0e6dccfe
7 files changed
+65 -4

No files matched your search

+1 -1
View File
@@ -287,6 +287,6 @@ func ensurePartyID(p *ocds.Organization) {
return
}
h := fnv.New32a()
_, _ = h.Write([]byte(p.Name)) // never fails
h.Write([]byte(p.Name)) //nolint:gosec // never fails
p.ID = fmt.Sprintf("GB-FTS-%d", h.Sum32()%1000000)
}