From 7f144a4c25c18f653824f2965e31cefec5b1c282 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 28 Oct 2019 12:58:28 +0800 Subject: [PATCH] fix lint --- models/issue.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/models/issue.go b/models/issue.go index 5c8ef0a49a161..17205cc2fa679 100644 --- a/models/issue.go +++ b/models/issue.go @@ -768,11 +768,7 @@ func (issue *Issue) ChangeContent(doer *User, content string) (err error) { return err } - if err = sess.Commit(); err != nil { - return err - } - - return nil + return sess.Commit() } // GetTasks returns the amount of tasks in the issues content