(name string)
| 54 | type present struct{} |
| 55 | |
| 56 | func illegalChannelError(name string) error { |
| 57 | return base.HTTPErrorf(400, "Illegal channel name %q", name) |
| 58 | } |
| 59 | |
| 60 | func IsValidChannel(channel string) bool { |
| 61 | return len(channel) > 0 && !strings.Contains(channel, ",") |
no test coverage detected