From 5ef673bb1494f0abe006fb958b50cc3121fffb89 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 17 Feb 2025 14:22:42 +0100 Subject: [PATCH] cli/command/system: fix "unused-receiver" linting cli/command/system/dial_stdio.go:113:7: unused-receiver: method receiver 'x' is not referenced in method's body, consider removing or renaming it as _ (revive) func (x *nopCloseReader) CloseRead() error { ^ Signed-off-by: Sebastiaan van Stijn --- cli/command/system/dial_stdio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/system/dial_stdio.go b/cli/command/system/dial_stdio.go index d4193ce8a..c8ccd181c 100644 --- a/cli/command/system/dial_stdio.go +++ b/cli/command/system/dial_stdio.go @@ -110,7 +110,7 @@ type nopCloseReader struct { halfReadWriteCloser } -func (x *nopCloseReader) CloseRead() error { +func (*nopCloseReader) CloseRead() error { return nil }