optional turns an empty description into null, as GitHub returns it.
(text string)
| 407 | |
| 408 | // optional turns an empty description into null, as GitHub returns it. |
| 409 | func optional(text string) any { |
| 410 | if text == "" { |
| 411 | return nil |
| 412 | } |
| 413 | return text |
| 414 | } |