From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- manualtesting/test_autolink.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'manualtesting/test_autolink.go') 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 } -- cgit v1.2.3-1-g7c22