if true return true else return false

Trivial improvement
This commit is contained in:
Hubert Hirtz 2021-02-17 19:27:35 +01:00 committed by Simon Ser
parent 31cd56875a
commit 6a1a05b1d4
1 changed files with 1 additions and 4 deletions

View File

@ -227,10 +227,7 @@ func (uc *upstreamConn) getChannel(name string) (*upstreamChannel, error) {
}
func (uc *upstreamConn) isChannel(entity string) bool {
if i := strings.IndexByte(uc.availableChannelTypes, entity[0]); i >= 0 {
return true
}
return false
return strings.ContainsRune(uc.availableChannelTypes, rune(entity[0]))
}
func (uc *upstreamConn) getPendingLIST() *pendingLIST {