( formData: FormData, userApiConfigRequired: boolean, key: string, value: string | null | undefined, )
| 21 | |
| 22 | |
| 23 | export function appendManagedModel( |
| 24 | formData: FormData, |
| 25 | userApiConfigRequired: boolean, |
| 26 | key: string, |
| 27 | value: string | null | undefined, |
| 28 | ): void { |
| 29 | if (!userApiConfigRequired) { |
| 30 | return; |
| 31 | } |
| 32 | const normalizedValue = (value || '').trim(); |
| 33 | if (normalizedValue) { |
| 34 | formData.append(key, normalizedValue); |
| 35 | } |
| 36 | } |
no outgoing calls
no test coverage detected