mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 23:00:59 -05:00
Seven per-service provisioners (Lambda, StepFunctions, ElbV2, Events, ApiGatewayRestApi, ApiGatewayV2, Cognito) each carried an identical private resolveOrDefault helper, differing only in argument order. Move it to ProvisionContext as an instance method next to resolveOptional and rewrite the 15 call sites to ctx.resolveOrDefault(props, name, default), removing the copies. Behavior is unchanged: the bodies were byte-identical (resolveOptional plus a non-blank fallback). The monolith's own resolveOrDefault(props, name, engine, default) is left alone: it takes a raw engine rather than a ProvisionContext, is already dead (no callers), and belongs to the later dispatcher-retirement cleanup. Refs #3885