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
@@ -185,7 +185,7 @@ func clone[T any](v T) T {
var out T
b, err := json.Marshal(v)
if err == nil {
_ = json.Unmarshal(b, &out)
json.Unmarshal(b, &out) //nolint:errcheck,gosec // b was just marshalled from a T
}
return out
}