all: Remove unused method receivers (#8462)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent
388e4db9cd
commit
755d21953f
@@ -45,11 +45,11 @@ func (rw *BlockingRW) Close() error {
|
||||
// NoopRW implements io.Reader and Writer but never returns when called
|
||||
type NoopRW struct{}
|
||||
|
||||
func (rw *NoopRW) Read(p []byte) (n int, err error) {
|
||||
func (*NoopRW) Read(p []byte) (n int, err error) {
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
func (rw *NoopRW) Write(p []byte) (n int, err error) {
|
||||
func (*NoopRW) Write(p []byte) (n int, err error) {
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user