From 70a249ae8ed6cb17d99e12b00a157524c8cb17da Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 22 May 2016 16:11:57 +0200 Subject: [PATCH] Fixed gosimple error --- Makefile | 2 +- configfile.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1ca2261..e8dfb7e 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ test: ginkgo gometalinter \ --cyclo-over=15 \ - --deadline=10s \ + --deadline=20s \ --exclude=bindata.go \ --exclude=configfile_test.go \ -D errcheck diff --git a/configfile.go b/configfile.go index 6326599..37a14e7 100644 --- a/configfile.go +++ b/configfile.go @@ -207,7 +207,7 @@ func (c *configFile) generateCredentialExport() (env []string) { env = append(env, "SWIFT_USERNAME="+c.Swift.Username) env = append(env, "SWIFT_PASSWORD="+c.Swift.Password) env = append(env, "SWIFT_AUTHURL="+c.Swift.AuthURL) - env = append(env, "SWIFT_AUTHVERSION="+strconv.FormatInt(int64(c.Swift.AuthVersion), 10)) + env = append(env, "SWIFT_AUTHVERSION="+strconv.Itoa(c.Swift.AuthVersion)) } if c.FTPPassword != "" { env = append(env, "FTP_PASSWORD="+c.FTPPassword)