diff options
author | Unknwon <u@gogs.io> | 2015-11-08 14:31:49 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-08 14:31:49 -0500 |
commit | b55499d039c5e35130057b8af16401c558e79e79 (patch) | |
tree | 4f3fc503ac7f1bb4f63733f359ba450fd90f3f1b /models/action.go | |
parent | 58436b5ea51cb5e09fb244331d7a9acf70258063 (diff) | |
download | gitea-b55499d039c5e35130057b8af16401c558e79e79.tar.gz gitea-b55499d039c5e35130057b8af16401c558e79e79.zip |
go vet and fix #1890
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 cfa6e14d93..e94bb9441b 100644 --- a/models/action.go +++ b/models/action.go @@ -147,7 +147,7 @@ func newRepoAction(e Engine, u *User, repo *Repository) (err error) { RepoName: repo.Name, IsPrivate: repo.IsPrivate, }); err != nil { - return fmt.Errorf("notify watchers '%d/%s': %v", u.Id, repo.ID, err) + return fmt.Errorf("notify watchers '%d/%d': %v", u.Id, repo.ID, err) } log.Trace("action.newRepoAction: %s/%s", u.Name, repo.Name) @@ -488,7 +488,7 @@ func transferRepoAction(e Engine, actUser, oldOwner, newOwner *User, repo *Repos IsPrivate: repo.IsPrivate, Content: path.Join(oldOwner.LowerName, repo.LowerName), }); err != nil { - return fmt.Errorf("notify watchers '%d/%s': %v", actUser.Id, repo.ID, err) + return fmt.Errorf("notify watchers '%d/%d': %v", actUser.Id, repo.ID, err) } // Remove watch for organization. |