1
0
Fork 0
forked from forgejo/forgejo

Clean code

This commit is contained in:
Unknown 2014-03-16 02:53:41 -04:00
parent 50df58a893
commit c3e0554fd7
3 changed files with 23 additions and 10 deletions

View file

@ -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,