align variable names

This commit is contained in:
Joel Wetzell
2026-03-08 09:36:59 -05:00
parent 0848d8ab6e
commit 7b1fe47039
9 changed files with 43 additions and 43 deletions

View File

@@ -20,24 +20,24 @@ type HTTPResponse struct {
Body []byte
}
func (hre *HTTPResponseCreate) Process(ctx context.Context, payload any) (any, error) {
func (hrc *HTTPResponseCreate) Process(ctx context.Context, payload any) (any, error) {
templateData := GetTemplateData(ctx, payload)
var bodyBuffer bytes.Buffer
err := hre.BodyTmpl.Execute(&bodyBuffer, templateData)
err := hrc.BodyTmpl.Execute(&bodyBuffer, templateData)
if err != nil {
return nil, err
}
return HTTPResponse{
Status: hre.Status,
Status: hrc.Status,
Body: bodyBuffer.Bytes(),
}, nil
}
func (hre *HTTPResponseCreate) Type() string {
return hre.config.Type
func (hrc *HTTPResponseCreate) Type() string {
return hrc.config.Type
}
func init() {