Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Oct 28, 2019
1 parent 6f30598 commit 7f144a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions models/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f144a4

Please sign in to comment.