Commit fdbea757 by Carl Bergquist Committed by GitHub

Merge pull request #14021 from mjtrangoni/fix-gofmt-issues

Fix gofmt issues
parents 46ebe245 89cd7471
......@@ -91,7 +91,7 @@ jobs:
- run: 'go get -u github.com/opennota/check/cmd/varcheck'
- run:
name: run linters
command: 'gometalinter --enable-gc --vendor --deadline 10m --disable-all --enable=deadcode --enable=goconst --enable=ineffassign --enable=megacheck --enable=structcheck --enable=unconvert --enable=varcheck ./...'
command: 'gometalinter --enable-gc --vendor --deadline 10m --disable-all --enable=deadcode --enable=goconst --enable=gofmt --enable=ineffassign --enable=megacheck --enable=structcheck --enable=unconvert --enable=varcheck ./...'
- run:
name: run go vet
command: 'go vet ./pkg/...'
......
......@@ -639,7 +639,7 @@ func shaFile(file string) error {
func shortenBuildId(buildId string) string {
buildId = strings.Replace(buildId, "-", "", -1)
if (len(buildId) < 9) {
if len(buildId) < 9 {
return buildId
}
return buildId[0:8]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment