Skip to content

Commit

Permalink
Fix multiple value in single-value context issue
Browse files Browse the repository at this point in the history
The Slack API dependency has changed upstream and caused that issue.
I'd advise to vendor it so this kind of issue wouldn't happen in
the future.
  • Loading branch information
Guillaume Lefranc committed Nov 17, 2017
1 parent f0d96bf commit 54e7da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slackcat.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (sc *Slackcat) postFile(filePath, fileName, fileType, fileComment string) {
}

start := time.Now()
err := api.FilesUpload(&slack.FilesUploadOpt{
_, err := api.FilesUpload(&slack.FilesUploadOpt{
Filepath: filePath,
Filename: fileName,
Filetype: fileType,
Expand Down

0 comments on commit 54e7da0

Please sign in to comment.