remove some unneccessary code when parsing sent message response

This commit is contained in:
skkiesel 2017-10-31 09:48:35 -04:00
parent d6c35b94ec
commit 42b1356eb2
1 changed files with 0 additions and 7 deletions

View File

@ -223,13 +223,6 @@ func (s *Slack) SendMessageType(channel, messageType, subType, message string) (
log.Fatalf("Error parsing message response: %s", err) log.Fatalf("Error parsing message response: %s", err)
} }
bodyAsString := string(body)
//what the fuck
if strings.Contains(bodyAsString, "\"ts\":\"") {
mr.Timestamp = strings.Split(strings.Split(bodyAsString, "\"ts\":\"")[1], "\"")[0]
}
return mr.Timestamp, err return mr.Timestamp, err
} }