-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Fix golint failures pkg/kubelet/util/cache #73990
Conversation
update pull request update pull request
/retest |
1 similar comment
/retest |
@vishh I think it is wrong to modify in this way. May I ask how can I modify? |
/assign @BenTheElder |
0743b4c
to
05036cc
Compare
/retest |
1 similar comment
/retest |
@@ -46,7 +46,7 @@ func TestAddAndGet(t *testing.T) { | |||
val: "bar", | |||
} | |||
objectCache := NewFakeObjectCache(func() (interface{}, error) { | |||
return nil, fmt.Errorf("Unexpected Error: updater should never be called in this test!") | |||
return nil, fmt.Errorf("Unexpected Error: updater should never be called in this test! ") |
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.
This doesn't seem right.
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.
golint has not found any error in running, please tell me what is wrong and I will fix it!
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.
why did we put a space here?
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.
if no space are added, run golint detection: pkg/kubelet/util/cache/object_cache_test.go:49:26: error strings should not be capitalized or end with punctuation or a newline
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 can also choose to delete !
or do you have a better idea?
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.
removing the "!" seems better than skirting the lint by adding a space to the end :^)
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.
I agree with!
/retest |
1 similar comment
/retest |
05036cc
to
4c42d54
Compare
/retest |
1 similar comment
/retest |
/skip |
/kind cleanup |
/assign @yujuhong |
/approve |
/assign @fejta |
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
/approve
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fejta, xichengliudui, yujuhong 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 |
/retest |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Fix golint failures
Which issue(s) this PR fixes:
Ref #68026
Special notes for your reviewer:
Does this PR introduce a user-facing change?: