concourse / concourse

Unused method receiver RVV-B0013
Bug risk
Major
5 occurrences in this check
Method receiver 'f' is not referenced in method's body, consider removing it
222	}
223}
224
225func (f AddressEndpointFactory) NewPodEndpoint(namespace, pod, port string) Endpoint {226	address := podAddress(namespace, pod)
227
228	return AddressEndpoint{
Method receiver 'f' is not referenced in method's body, consider removing it
214// through port-forwarding.
215type AddressEndpointFactory struct{}
216
217func (f AddressEndpointFactory) NewServiceEndpoint(namespace, service, port string) Endpoint {218	address := serviceAddress(namespace, service)
219
220	return AddressEndpoint{
Method receiver 'f' is not referenced in method's body, consider removing it
201	}
202}
203
204func (f PortForwardingEndpointFactory) NewPodEndpoint(namespace, pod, port string) Endpoint {205	session, address := portForward(namespace, "pod/"+pod, port)
206
207	return PortForwardingEndpoint{
Method receiver 'f' is not referenced in method's body, consider removing it
192// through port-forwarding.
193type PortForwardingEndpointFactory struct{}
194
195func (f PortForwardingEndpointFactory) NewServiceEndpoint(namespace, service, port string) Endpoint {196	session, address := portForward(namespace, "service/"+service, port)
197
198	return PortForwardingEndpoint{
Method receiver 'p' is not referenced in method's body, consider removing it
184	return p.address
185}
186
187func (p AddressEndpoint) Close() error {188	return nil
189}
190