(id toolspkg.ToolID, field string, value string)
| 4421 | } |
| 4422 | |
| 4423 | func requiredNativeString(id toolspkg.ToolID, field string, value string) (string, error) { |
| 4424 | trimmed := strings.TrimSpace(value) |
| 4425 | if trimmed == "" { |
| 4426 | return "", nativeRequiredInputError(id, field) |
| 4427 | } |
| 4428 | return trimmed, nil |
| 4429 | } |
| 4430 | |
| 4431 | func nativeRequiredInputError(id toolspkg.ToolID, field string) error { |
| 4432 | return toolspkg.NewToolError( |
no test coverage detected