From 58653aa467d4dd1df9aa8736b31d87d9793d19df Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Mon, 11 Jan 2016 18:29:56 -0500 Subject: [PATCH] add return if noop to postfile method --- slackcat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/slackcat.go b/slackcat.go index 978e51a..9316d33 100644 --- a/slackcat.go +++ b/slackcat.go @@ -118,6 +118,7 @@ func (sc *SlackCat) postFile(filePath, fileName string, noop bool) { if noop { output(fmt.Sprintf("skipping upload of file %s to %s", fileName, sc.channelName)) + return } start := time.Now()