Closed WeiZhang555 closed 6 years ago
This is detected by a latest golint tools, I can see that you have enabled gometalinter tools in you CI, I guess the reason that gometalinter didn't detected this is that it's using a old golint tool.
As the issue is real, I think it's better to fix this, or we still need to fix this someday when we updated gometalinter. :smile:
@WeiZhang555 thanks for the PR, I agree it's good to clean those asap!
@sboeuf 🤝 👍
Some "if" checks are redundant, we can remove them and return error directly instead.
Signed-off-by: Zhang Wei zhangwei555@huawei.com