Skip to content

Commit e433b10

Browse files
committed
remove generic params type for allow receive nil
1 parent ef063c6 commit e433b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

env_generic_sugar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package fixenv
55

6-
func Cache[TEnv Env, TParams any, TRes any](env TEnv, params TParams, opt *FixtureOptions, f func() (TRes, error)) TRes {
6+
func Cache[TEnv Env, TRes any](env TEnv, params any, opt *FixtureOptions, f func() (TRes, error)) TRes {
77
callbackResult := env.Cache(params, opt, func() (res interface{}, err error) {
88
return f()
99
})

0 commit comments

Comments
 (0)