bridge/rocketchat/rocketchat.go
Method Brocketchat.Send
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (b *Brocketchat) Send(msg config.Message) (string, error) {
// strip the # if people has set this
msg.Channel = strings.TrimPrefix(msg.Channel, "#")
channel := &models.Channel{ID: b.getChannelID(msg.Channel), Name: msg.Channel}