linter pass

This commit is contained in:
Joe Kralicky 2024-10-24 17:56:30 -04:00
parent f1d2799a9f
commit 8049ca54d0
No known key found for this signature in database
GPG key ID: 75C4875F34A9FB79
13 changed files with 51 additions and 50 deletions

View file

@ -92,7 +92,7 @@ func Bind[T any, U any](dt Value[T], callback func(value T) U) Value[U] {
func Bind2[T any, U any, V any](dt Value[T], du Value[U], callback func(value1 T, value2 U) V) Value[V] {
dv := Deferred[V]()
dv.ResolveFunc(func() V {
if rand.IntN(2) == 0 {
if rand.IntN(2) == 0 { //nolint:gosec
return callback(dt.Value(), du.Value())
}
u := du.Value()