diff options
Diffstat (limited to 'manualtesting/test_autolink.go')
-rw-r--r-- | manualtesting/test_autolink.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/manualtesting/test_autolink.go b/manualtesting/test_autolink.go index 2614a9e4b..434e50c95 100644 --- a/manualtesting/test_autolink.go +++ b/manualtesting/test_autolink.go @@ -25,7 +25,7 @@ https://medium.com/@slackhq/11-useful-tips-for-getting-the-most-of-slack-5dfb3d1 func testAutoLink(env TestEnvironment) *model.AppError { l4g.Info(utils.T("manaultesting.test_autolink.info")) channelID, err := getChannelID(env.Context.App, model.DEFAULT_CHANNEL, env.CreatedTeamId, env.CreatedUserId) - if err != true { + if !err { return model.NewAppError("/manualtest", "manaultesting.test_autolink.unable.app_error", nil, "", http.StatusInternalServerError) } @@ -33,9 +33,5 @@ func testAutoLink(env TestEnvironment) *model.AppError { ChannelId: channelID, Message: LINK_POST_TEXT} _, err2 := env.Client.CreatePost(post) - if err2 != nil { - return err2 - } - - return nil + return err2 } |