all: Unused parameter should be replaced by underscore (#8464)
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
7bdb5faa9c
commit
5130c414da
@@ -25,12 +25,12 @@ func NewBlockingRW() *BlockingRW {
|
||||
closeOnce: sync.Once{},
|
||||
}
|
||||
}
|
||||
func (rw *BlockingRW) Read(p []byte) (int, error) {
|
||||
func (rw *BlockingRW) Read(_ []byte) (int, error) {
|
||||
<-rw.c
|
||||
return 0, ErrClosed
|
||||
}
|
||||
|
||||
func (rw *BlockingRW) Write(p []byte) (int, error) {
|
||||
func (rw *BlockingRW) Write(_ []byte) (int, error) {
|
||||
<-rw.c
|
||||
return 0, ErrClosed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user