This commit is contained in:
sam 2024-07-12 18:31:35 +12:00
parent 16f349df23
commit 0b9c0d1e37

View file

@ -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
}