Removed named return.

This commit is contained in:
Patrick Connolly
2018-11-15 22:28:48 +08:00
parent 732a0d68fb
commit 3e0ec080ca

View File

@@ -325,7 +325,7 @@ func (b *Bslack) sendRTM(msg config.Message) (string, error) {
func (b *Bslack) updateTopicOrPurpose(msg *config.Message, channelInfo *slack.Channel) (bool, error) {
var updateFunc func(channelID string, value string) (*slack.Channel, error)
incomingChangeType, text := b.extractTopicOrPurpose(msg.Text)
incomingChangeType, text := extractTopicOrPurpose(msg.Text)
switch incomingChangeType {
case "topic":
updateFunc = b.rtm.SetTopicOfConversation