1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

cli/command/swarm: fix "unused-receiver" linting

cli/command/swarm/opts.go:71:7: unused-receiver: method receiver 'a' is not referenced in method's body, consider removing or renaming it as _ (revive)
    func (a *NodeAddrOption) Type() string {
          ^
    cli/command/swarm/opts.go:107:7: unused-receiver: method receiver 'm' is not referenced in method's body, consider removing or renaming it as _ (revive)
    func (m *ExternalCAOption) Type() string {
          ^
    cli/command/swarm/opts.go:132:7: unused-receiver: method receiver 'p' is not referenced in method's body, consider removing or renaming it as _ (revive)
    func (p *PEMFile) Type() string {
          ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-02-17 14:15:54 +01:00
parent 25e6b2da04
commit a54d356a7b

View File

@@ -68,7 +68,7 @@ func (a *NodeAddrOption) Set(value string) error {
}
// Type returns the type of this flag
func (a *NodeAddrOption) Type() string {
func (*NodeAddrOption) Type() string {
return "node-addr"
}
@@ -104,7 +104,7 @@ func (m *ExternalCAOption) Set(value string) error {
}
// Type returns the type of this option.
func (m *ExternalCAOption) Type() string {
func (*ExternalCAOption) Type() string {
return "external-ca"
}
@@ -129,7 +129,7 @@ type PEMFile struct {
}
// Type returns the type of this option.
func (p *PEMFile) Type() string {
func (*PEMFile) Type() string {
return "pem-file"
}