From f8302c5470e362678d856e50d50dda104f79d847 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 14 Sep 2018 22:48:35 -0400 Subject: [PATCH] ci: fix go vet and add Go 1.11.x --- .travis.yml | 1 + routes/repo/branch.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6efd89b46..0ee942658 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ go: - 1.8.x - 1.9.x - 1.10.x + - 1.11.x - master before_install: diff --git a/routes/repo/branch.go b/routes/repo/branch.go index 072234ce8..432ebe861 100644 --- a/routes/repo/branch.go +++ b/routes/repo/branch.go @@ -124,7 +124,7 @@ func DeleteBranchPost(c *context.Context) { if len(commitID) > 0 { branchCommitID, err := c.Repo.GitRepo.GetBranchCommitID(branchName) 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 }