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:
1 parent
6e6dec68c0
commit
9b0e6dccfe
7 files changed
+65
-4
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user