MCPcopy
hub / github.com/larksuite/cli / EmptyReport

Function EmptyReport

shortcuts/mail/lint/types.go:86–92  ·  view source on GitHub ↗

EmptyReport returns a Report with the contract-required empty (non-nil) arrays and CleanedHTML equal to the input. Compose 5 / +draft-edit call this when the body is plain-text or empty so the stdout envelope's `lint_applied` / `original_blocked` fields are always present arrays.

(html string)

Source from the content-addressed store, hash-verified

84// this when the body is plain-text or empty so the stdout envelope's
85// `lint_applied` / `original_blocked` fields are always present arrays.
86func EmptyReport(html string) Report {
87 return Report{
88 Applied: []Finding{},
89 Blocked: []Finding{},
90 CleanedHTML: html,
91 }
92}

Calls

no outgoing calls