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
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

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"
}