From 42b1356eb20d772729fec42191e1eec621088ce9 Mon Sep 17 00:00:00 2001 From: skkiesel Date: Tue, 31 Oct 2017 09:48:35 -0400 Subject: [PATCH] remove some unneccessary code when parsing sent message response --- slack/slack.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/slack/slack.go b/slack/slack.go index 3e7e2ed..9808e2c 100644 --- a/slack/slack.go +++ b/slack/slack.go @@ -223,13 +223,6 @@ func (s *Slack) SendMessageType(channel, messageType, subType, message string) ( 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 }