summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/issue.go b/models/issue.go
index 6078f53f2d..0f63fa6923 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -94,12 +94,12 @@ func (issue *Issue) loadAttributes(e Engine) (err error) {
if issue.Poster == nil {
issue.Poster, err = getUserByID(e, issue.PosterID)
if err != nil {
- if IsErrUserNotExist(err) {
- issue.PosterID = -1
- issue.Poster = NewGhostUser()
- } else {
+ issue.PosterID = -1
+ issue.Poster = NewGhostUser()
+ if !IsErrUserNotExist(err) {
return fmt.Errorf("getUserByID.(poster) [%d]: %v", issue.PosterID, err)
}
+ err = nil
return
}
}