diff --git a/helpers.go b/helpers.go index 8a609e9..8887618 100644 --- a/helpers.go +++ b/helpers.go @@ -18,7 +18,7 @@ func HandleError(err error) { } } -func PassthroughError[T any](val T, err error) any { +func PassthroughError[T any](val T, err error) T { HandleError(err) return val }