-
Notifications
You must be signed in to change notification settings - Fork 545
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 a few lint issues #1684
Fix a few lint issues #1684
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1684 +/- ##
==========================================
+ Coverage 72.81% 72.84% +0.03%
==========================================
Files 121 121
Lines 9633 9629 -4
==========================================
Hits 7014 7014
+ Misses 1941 1939 -2
+ Partials 678 676 -2
|
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, feel free to ignore these nits.
@@ -399,7 +399,7 @@ type fakeKeychain struct { | |||
count int | |||
} | |||
|
|||
func (k *fakeKeychain) Resolve(target Resource) (Authenticator, error) { | |||
func (k *fakeKeychain) Resolve(_ Resource) (Authenticator, error) { |
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.
func (k *fakeKeychain) Resolve(_ Resource) (Authenticator, error) { | |
func (k *fakeKeychain) Resolve(Resource) (Authenticator, error) { |
@@ -49,7 +49,7 @@ type MockClient struct { | |||
saveBody io.ReadCloser | |||
} | |||
|
|||
func (m *MockClient) NegotiateAPIVersion(ctx context.Context) { | |||
func (m *MockClient) NegotiateAPIVersion(_ context.Context) { |
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.
func (m *MockClient) NegotiateAPIVersion(_ context.Context) { | |
func (m *MockClient) NegotiateAPIVersion(context.Context) { |
@@ -33,7 +33,7 @@ type errReader struct { | |||
err error | |||
} | |||
|
|||
func (r *errReader) Read(p []byte) (int, error) { | |||
func (r *errReader) Read(_ []byte) (int, error) { |
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.
func (r *errReader) Read(_ []byte) (int, error) { | |
func (r *errReader) Read([]byte) (int, error) { |
@@ -227,7 +227,7 @@ type errReadCloser struct { | |||
err error | |||
} | |||
|
|||
func (e *errReadCloser) Read(p []byte) (int, error) { | |||
func (e *errReadCloser) Read(_ []byte) (int, error) { |
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.
func (e *errReadCloser) Read(_ []byte) (int, error) { | |
func (e *errReadCloser) Read([]byte) (int, error) { |
@@ -33,7 +33,7 @@ type mockTransport struct { | |||
count int | |||
} | |||
|
|||
func (t *mockTransport) RoundTrip(in *http.Request) (out *http.Response, err error) { | |||
func (t *mockTransport) RoundTrip(_ *http.Request) (out *http.Response, err error) { |
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.
func (t *mockTransport) RoundTrip(_ *http.Request) (out *http.Response, err error) { | |
func (t *mockTransport) RoundTrip(*http.Request) (out *http.Response, err error) { |
No description provided.