Merge pull request #2097 from mattermost/plt-1781

PLT-1781 Fixing slack import.
Этот коммит содержится в:
Joram Wilander
2016-02-08 11:57:58 -05:00
родитель bb5ae99643 476822ca8d
Коммит b6300b1656

Просмотреть файл

@@ -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
}