Browse Source

ci: fix go vet and add Go 1.11.x

pull/5380/merge
Unknwon 6 years ago
parent
commit
f8302c5470
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 1
      .travis.yml
  2. 2
      routes/repo/branch.go

1
.travis.yml

@ -4,6 +4,7 @@ go:
- 1.8.x - 1.8.x
- 1.9.x - 1.9.x
- 1.10.x - 1.10.x
- 1.11.x
- master - master
before_install: before_install:

2
routes/repo/branch.go

@ -124,7 +124,7 @@ func DeleteBranchPost(c *context.Context) {
if len(commitID) > 0 { if len(commitID) > 0 {
branchCommitID, err := c.Repo.GitRepo.GetBranchCommitID(branchName) branchCommitID, err := c.Repo.GitRepo.GetBranchCommitID(branchName)
if err != nil { if err != nil {
log.Error(2, "Failed to get commit ID of branch %q: %v", err) log.Error(2, "Failed to get commit ID of branch %q: %v", branchName, err)
return return
} }

Loading…
Cancel
Save