mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-08-10 02:28:08 +00:00
Remove unnecessary check, make megacheck happy
This commit is contained in:
@@ -394,7 +394,6 @@ func (b *Bslack) replaceURL(text string) string {
|
||||
|
||||
func (b *Bslack) createAttach(extra []interface{}) []slack.Attachment {
|
||||
var attachs []slack.Attachment
|
||||
if extra != nil {
|
||||
for _, v := range extra {
|
||||
entry := v.(map[string]interface{})
|
||||
s := slack.Attachment{}
|
||||
@@ -413,6 +412,5 @@ func (b *Bslack) createAttach(extra []interface{}) []slack.Attachment {
|
||||
s.FooterIcon = entry["footer_icon"].(string)
|
||||
attachs = append(attachs, s)
|
||||
}
|
||||
}
|
||||
return attachs
|
||||
}
|
||||
|
Reference in New Issue
Block a user