mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 15:10:28 +00:00
Remove unnecessary check, make megacheck happy
This commit is contained in:
parent
47b7fae61b
commit
d59c51a94b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user