Skip to content

Commit

Permalink
Merge pull request #1371 from ploxiln/test_go_vet
Browse files Browse the repository at this point in the history
test: add "go vet"
  • Loading branch information
mreiferson authored Sep 5, 2021
2 parents 45febac + d676737 commit d21ec48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion nsqadmin/nsqadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ func New(opts *Options) (*NSQAdmin, error) {
url, err := url.Parse(opts.GraphiteURL)
if err != nil {
return nil, fmt.Errorf("failed to parse --graphite-url (%s) - %s", opts.GraphiteURL, err)
os.Exit(1)
}
n.graphiteURL = url
}
Expand Down
3 changes: 3 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ for dir in apps/*/ bench/*/; do
fi
done

# disable "composite literal uses unkeyed fields"
go vet -composites=false ./...

FMTDIFF="$(find apps internal nsqd nsqlookupd -name '*.go' -exec gofmt -d '{}' ';')"
if [ -n "$FMTDIFF" ]; then
printf '%s\n' "$FMTDIFF"
Expand Down

0 comments on commit d21ec48

Please sign in to comment.