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/migrations | |
parent | 58436b5ea51cb5e09fb244331d7a9acf70258063 (diff) | |
download | gitea-b55499d039c5e35130057b8af16401c558e79e79.tar.gz gitea-b55499d039c5e35130057b8af16401c558e79e79.zip |
go vet and fix #1890
Diffstat (limited to 'models/migrations')
-rw-r--r-- | models/migrations/migrations.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index d7549d07fa..0d17cf2691 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -456,7 +456,7 @@ func trimCommitActionAppUrlPrefix(x *xorm.Engine) error { pushCommits = new(PushCommits) if err = json.Unmarshal(action["content"], pushCommits); err != nil { - return fmt.Errorf("unmarshal action content[%s]: %v", actID, err) + return fmt.Errorf("unmarshal action content[%d]: %v", actID, err) } infos := strings.Split(pushCommits.CompareUrl, "/") @@ -467,7 +467,7 @@ func trimCommitActionAppUrlPrefix(x *xorm.Engine) error { p, err := json.Marshal(pushCommits) if err != nil { - return fmt.Errorf("marshal action content[%s]: %v", actID, err) + return fmt.Errorf("marshal action content[%d]: %v", actID, err) } if _, err = sess.Id(actID).Update(&Action{ |