-
Notifications
You must be signed in to change notification settings - Fork 771
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
chore: remove some commented code and simplify some #983
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for contributing! One nit:
} | ||
if host := webhookutil.GetHost(); len(host) > 0 && wh.ClientConfig.Service != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may also have to optimize the same code in line 102-104
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it and PTAL.
It seems UT failed because of |
@hezhizhen Hey, could you fix this today, for we are preparing for v1.2 release and I hope this can be ready for it. |
I tried yesterday, but nothing's different. I guess that it is because my go version is 1.18. I'll fix it today. |
Oh it might be. We have seen go versions always make these problems. Can |
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
It seems that go 1.17 and 1.18 handle dependencies differently. 1.17 treats github.com/go-openapi/spec as indirect and 1.18 treats it as direct. Is there a way to fix go version for this project to avoid cases like this? |
Emm... for this case, putting |
For this case, yes; for general problems caused by different go versions, no. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FillZpp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com> Signed-off-by: Liu Zhenwei <zwliu@thoughtworks.com>
Ⅰ. Describe what this PR does
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews