diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-09-19 01:08:30 -0700 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-09-19 11:08:30 +0300 |
commit | 4cb9394a978af75794d43accc231b6649f2884bc (patch) | |
tree | 06df979841396c51d292eb5a078ece1c8af11fd9 /models/issue.go | |
parent | d155d0e6656df7b7699a4a6b60889689d6678ef5 (diff) | |
download | gitea-4cb9394a978af75794d43accc231b6649f2884bc.tar.gz gitea-4cb9394a978af75794d43accc231b6649f2884bc.zip |
Fix lint errors (#2547)
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/models/issue.go b/models/issue.go index a8149b123d..7884507a27 100644 --- a/models/issue.go +++ b/models/issue.go @@ -571,11 +571,7 @@ func (issue *Issue) ReadBy(userID int64) error { return err } - if err := setNotificationStatusReadIfUnread(x, userID, issue.ID); err != nil { - return err - } - - return nil + return setNotificationStatusReadIfUnread(x, userID, issue.ID) } func updateIssueCols(e Engine, issue *Issue, cols ...string) error { |