def both
import bend-kit-webhooks@0.11.0.1/webhooks.bend as Webhooksimport Base
223# A bad secret fails the check, even when another secret matches.
224def both(a: Result<&1, &1, Err, Bool>, b: Result<&1, &1, Err, Bool>) -> Result<&1, &1, Err, Bool>:
225 match a:
226 case Fail{e}:
227 Fail{e}
228 case Done{x}:
229 both.done(x, b)