Skip to content

Fix redundant error by golint in redis.go #408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2017
Merged

Conversation

shibayu36
Copy link
Contributor

TravisCI build is failed with "mackerel-plugin-redis/lib/redis.go:93:2: redundant if ...; err != nil check, just return error instead" ( https://travis-ci.org/mackerelio/mackerel-agent-plugins/jobs/277135454#L1091 ).

This is because golint's specification change (golang/lint#319).

So I fixed redis.go to pass golint.

@shibayu36 shibayu36 self-assigned this Sep 19, 2017
@itchyny
Copy link
Contributor

itchyny commented Sep 19, 2017

LGTM

@shibayu36 shibayu36 merged commit 8ce4900 into master Sep 19, 2017
@shibayu36 shibayu36 deleted the fix-reductant-error branch September 19, 2017 05:04
@shibayu36
Copy link
Contributor Author

thanks!

@syou6162 syou6162 mentioned this pull request Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants