Skip to content

Commit 7f144a4

Browse files
committed
fix lint
1 parent 6f30598 commit 7f144a4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

models/issue.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -768,11 +768,7 @@ func (issue *Issue) ChangeContent(doer *User, content string) (err error) {
768768
return err
769769
}
770770

771-
if err = sess.Commit(); err != nil {
772-
return err
773-
}
774-
775-
return nil
771+
return sess.Commit()
776772
}
777773

778774
// GetTasks returns the amount of tasks in the issues content

0 commit comments

Comments
 (0)