1
0
Fork 0
mirror of https://github.com/Luzifer/duplicity-backup.git synced 2024-11-08 15:10:06 +00:00

Fixed gosimple error

This commit is contained in:
Knut Ahlers 2016-05-22 16:11:57 +02:00
parent 03550c0003
commit 70a249ae8e
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ test:
ginkgo ginkgo
gometalinter \ gometalinter \
--cyclo-over=15 \ --cyclo-over=15 \
--deadline=10s \ --deadline=20s \
--exclude=bindata.go \ --exclude=bindata.go \
--exclude=configfile_test.go \ --exclude=configfile_test.go \
-D errcheck -D errcheck

View file

@ -207,7 +207,7 @@ func (c *configFile) generateCredentialExport() (env []string) {
env = append(env, "SWIFT_USERNAME="+c.Swift.Username) env = append(env, "SWIFT_USERNAME="+c.Swift.Username)
env = append(env, "SWIFT_PASSWORD="+c.Swift.Password) env = append(env, "SWIFT_PASSWORD="+c.Swift.Password)
env = append(env, "SWIFT_AUTHURL="+c.Swift.AuthURL) 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 != "" { if c.FTPPassword != "" {
env = append(env, "FTP_PASSWORD="+c.FTPPassword) env = append(env, "FTP_PASSWORD="+c.FTPPassword)