Merge pull request #111 from digineo/golint

Add golint
This commit is contained in:
Julien Laffaye 2018-01-05 08:53:57 +01:00 committed by GitHub
commit 2c34dfa9b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -11,5 +11,7 @@ before_install:
- sudo $TRAVIS_BUILD_DIR/.travis/prepare.sh "$FTP_SERVER" - sudo $TRAVIS_BUILD_DIR/.travis/prepare.sh "$FTP_SERVER"
- sudo sysctl net.ipv6.conf.lo.disable_ipv6=0 - sudo sysctl net.ipv6.conf.lo.disable_ipv6=0
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
- go get github.com/golang/lint/golint
script: script:
- goveralls -v - goveralls -v
- golint -set_exit_status $(go list ./...)

6
ftp.go
View File

@ -131,11 +131,9 @@ func (c *ServerConn) Login(user, password string) error {
} }
// Switch to UTF-8 // Switch to UTF-8
if err := c.setUTF8(); err != nil { err = c.setUTF8()
return err
}
return nil return err
} }
// feat issues a FEAT FTP command to list the additional commands supported by // feat issues a FEAT FTP command to list the additional commands supported by