diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-16 02:53:41 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-16 02:53:41 -0400 |
commit | c3e0554fd77f976b58a8da10d4878353bb895a78 (patch) | |
tree | 98199e67fe35812eb68427c310416e4eaa840a56 /models/action.go | |
parent | 50df58a893b745abff74bdcbb9be3fc0d10d21f4 (diff) | |
download | gitea-c3e0554fd77f976b58a8da10d4878353bb895a78.tar.gz gitea-c3e0554fd77f976b58a8da10d4878353bb895a78.zip |
Clean code
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go index 93c1e2768f..9e075646a6 100644 --- a/models/action.go +++ b/models/action.go @@ -43,6 +43,7 @@ func (a Action) GetRepoName() string { return a.RepoName } +// CommitRepoAction records action for commit repository. func CommitRepoAction(userId int64, userName string, repoId int64, repoName string, msg string) error { _, err := orm.InsertOne(&Action{ @@ -57,8 +58,7 @@ func CommitRepoAction(userId int64, userName string, return err } -// NewRepoAction inserts action for create repository. - +// NewRepoAction records action for create repository. func NewRepoAction(user *User, repo *Repository) error { _, err := orm.InsertOne(&Action{ UserId: user.Id, |