diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-30 11:57:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 11:57:24 -0500 |
commit | c5e8cb25caa39ed018ede5270e1566e8f7448396 (patch) | |
tree | 80f9f8957d4ff8458ecf9631135c916df25544bd /manualtesting/test_autolink.go | |
parent | 63df41b91110bac06baffef87fe0c1952b47ac93 (diff) | |
download | chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.gz chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.bz2 chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.zip |
simplify things (#7735)
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 } |