(commType string)
| 96 | } |
| 97 | |
| 98 | func validateCommType(commType string) error { |
| 99 | if commType != "" && !cos.StringInSlice(commType, commTypes) { |
| 100 | return fmt.Errorf("unknown communication type: %q", commType) |
| 101 | } |
| 102 | return nil |
| 103 | } |
no test coverage detected