Remove unnecessary check, make megacheck happy

This commit is contained in:
Wim 2017-09-19 00:04:27 +02:00
parent 47b7fae61b
commit d59c51a94b

View File

@ -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
}