~emersion/soju-dev

if true return true else return false v1 APPLIED

Hubert Hirtz: 1
 if true return true else return false

 1 files changed, 1 insertions(+), 4 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/soju-dev/patches/20340/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] if true return true else return false Export this patch

	Trivial improvement
---
 upstream.go | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/upstream.go b/upstream.go
index 8843b1b..59cf827 100644
--- a/upstream.go
+++ b/upstream.go
@@ -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 {
-- 
2.26.2
Pushed, thanks!