mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-22 10:42:02 -08: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 {
|
func (b *Bslack) createAttach(extra []interface{}) []slack.Attachment {
|
||||||
var attachs []slack.Attachment
|
var attachs []slack.Attachment
|
||||||
if extra != nil {
|
|
||||||
for _, v := range extra {
|
for _, v := range extra {
|
||||||
entry := v.(map[string]interface{})
|
entry := v.(map[string]interface{})
|
||||||
s := slack.Attachment{}
|
s := slack.Attachment{}
|
||||||
@ -413,6 +412,5 @@ func (b *Bslack) createAttach(extra []interface{}) []slack.Attachment {
|
|||||||
s.FooterIcon = entry["footer_icon"].(string)
|
s.FooterIcon = entry["footer_icon"].(string)
|
||||||
attachs = append(attachs, s)
|
attachs = append(attachs, s)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return attachs
|
return attachs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user