diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-03-29 21:18:28 -0300 |
---|---|---|
committer | Andrey Nering <andrey.nering@gmail.com> | 2017-03-29 21:18:28 -0300 |
commit | caed86fc6ef87d11035889a11b8949c839e19d52 (patch) | |
tree | 9deb2b4d382587afd5850b9bb3a62ebde2e0eee8 /models | |
parent | e4a33ed4d0d078c6d8a5b9025865c805f7eee179 (diff) | |
download | gitea-caed86fc6ef87d11035889a11b8949c839e19d52.tar.gz gitea-caed86fc6ef87d11035889a11b8949c839e19d52.zip |
Fix lint
Diffstat (limited to 'models')
-rw-r--r-- | models/issue_watch.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/issue_watch.go b/models/issue_watch.go index 1e26509638..d08e1253e8 100644 --- a/models/issue_watch.go +++ b/models/issue_watch.go @@ -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) } |