diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-08 09:41:56 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-08 09:41:56 -0500 |
commit | 476822ca8d6bd2c09e3d81f3629dfed73076de66 (patch) | |
tree | f1f9dc2cdc6dcb44efc097e7aec1e5d597ee2212 /api | |
parent | 91c78682f5db0a6323753422f20c0a55a60ad35b (diff) | |
download | chat-476822ca8d6bd2c09e3d81f3629dfed73076de66.tar.gz chat-476822ca8d6bd2c09e3d81f3629dfed73076de66.tar.bz2 chat-476822ca8d6bd2c09e3d81f3629dfed73076de66.zip |
Fixing slack import.
Diffstat (limited to 'api')
-rw-r--r-- | api/slackimport.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/api/slackimport.go b/api/slackimport.go index 6497ac261..5ca209c5c 100644 --- a/api/slackimport.go +++ b/api/slackimport.go @@ -75,7 +75,10 @@ func SlackParseUsers(data io.Reader) []SlackUser { var users []SlackUser if err := decoder.Decode(&users); err != nil { - return make([]SlackUser, 0) + // This actually returns errors that are ignored. + // In this case it is erroring because of a null that Slack + // introduced. So we just return the users here. + return users } return users } |