Browse Source

Fix lint

for-closed-social
Andrey Nering 7 years ago
parent
commit
caed86fc6e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      models/issue_watch.go

+ 2
- 0
models/issue_watch.go View File

@ -24,6 +24,7 @@ func (iw *IssueWatch) BeforeInsert() {
iw.UpdatedUnix = time.Now().Unix()
}
// BeforeUpdate is invoked from XORM before updating an object of this type.
func (iw *IssueWatch) BeforeUpdate() {
iw.Updated = time.Now()
iw.UpdatedUnix = time.Now().Unix()
@ -70,6 +71,7 @@ func getIssueWatch(e Engine, userID, issueID int64) (iw *IssueWatch, exists bool
return
}
// GetIssueWatchers returns watchers/unwatchers of a given issue
func GetIssueWatchers(issueID int64) ([]*IssueWatch, error) {
return getIssueWatchers(x, issueID)
}

Loading…
Cancel
Save