fix: tests

This commit is contained in:
DevMiner 2024-09-02 15:46:32 +02:00
parent 62a1a1ff83
commit 3f8ac13289
6 changed files with 59 additions and 51 deletions

10
pkg/versia/utils/fns.go Normal file
View file

@ -0,0 +1,10 @@
package versiautils
func Must[In any, Out any](fn func(In) (Out, error), v In) Out {
out, err := fn(v)
if err != nil {
panic(err)
}
return out
}