cli/connhelper/commandconn: fix "unused-receiver" linting
cli/connhelper/commandconn/commandconn.go:256:7: unused-receiver: method receiver 'c' is not referenced in method's body, consider removing or renaming it as _ (revive) func (c *commandConn) SetDeadline(t time.Time) error { ^ cli/connhelper/commandconn/commandconn.go:261:7: unused-receiver: method receiver 'c' is not referenced in method's body, consider removing or renaming it as _ (revive) func (c *commandConn) SetReadDeadline(t time.Time) error { ^ cli/connhelper/commandconn/commandconn.go:266:7: unused-receiver: method receiver 'c' is not referenced in method's body, consider removing or renaming it as _ (revive) func (c *commandConn) SetWriteDeadline(t time.Time) error { ^ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
fdc665820c
commit
d0c3380ce4
@ -253,17 +253,17 @@ func (c *commandConn) RemoteAddr() net.Addr {
|
|||||||
return c.remoteAddr
|
return c.remoteAddr
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandConn) SetDeadline(t time.Time) error {
|
func (*commandConn) SetDeadline(t time.Time) error {
|
||||||
logrus.Debugf("unimplemented call: SetDeadline(%v)", t)
|
logrus.Debugf("unimplemented call: SetDeadline(%v)", t)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandConn) SetReadDeadline(t time.Time) error {
|
func (*commandConn) SetReadDeadline(t time.Time) error {
|
||||||
logrus.Debugf("unimplemented call: SetReadDeadline(%v)", t)
|
logrus.Debugf("unimplemented call: SetReadDeadline(%v)", t)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandConn) SetWriteDeadline(t time.Time) error {
|
func (*commandConn) SetWriteDeadline(t time.Time) error {
|
||||||
logrus.Debugf("unimplemented call: SetWriteDeadline(%v)", t)
|
logrus.Debugf("unimplemented call: SetWriteDeadline(%v)", t)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user