if true return true else return false
Trivial improvement
This commit is contained in:
parent
31cd56875a
commit
6a1a05b1d4
@ -227,10 +227,7 @@ func (uc *upstreamConn) getChannel(name string) (*upstreamChannel, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (uc *upstreamConn) isChannel(entity string) bool {
|
func (uc *upstreamConn) isChannel(entity string) bool {
|
||||||
if i := strings.IndexByte(uc.availableChannelTypes, entity[0]); i >= 0 {
|
return strings.ContainsRune(uc.availableChannelTypes, rune(entity[0]))
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (uc *upstreamConn) getPendingLIST() *pendingLIST {
|
func (uc *upstreamConn) getPendingLIST() *pendingLIST {
|
||||||
|
Loading…
Reference in New Issue
Block a user