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:
parent
25e6b2da04
commit
a54d356a7b
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user