mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
compress empty implementations to single line (#740)
This commit is contained in:
committed by
Miek Gieben
parent
5942f5dd5b
commit
7219bff11f
@@ -55,13 +55,9 @@ func TestIsDefaultNS(t *testing.T) {
|
||||
|
||||
type APIConnTest struct{}
|
||||
|
||||
func (APIConnTest) Run() {
|
||||
return
|
||||
}
|
||||
|
||||
func (APIConnTest) Stop() error {
|
||||
return nil
|
||||
}
|
||||
func (APIConnTest) Run() { return }
|
||||
func (APIConnTest) Stop() error { return nil }
|
||||
func (APIConnTest) PodIndex(string) []interface{} { return nil }
|
||||
|
||||
func (APIConnTest) ServiceList() []*api.Service {
|
||||
svc := api.Service{
|
||||
@@ -78,10 +74,6 @@ func (APIConnTest) ServiceList() []*api.Service {
|
||||
|
||||
}
|
||||
|
||||
func (APIConnTest) PodIndex(string) []interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (APIConnTest) EndpointsList() api.EndpointsList {
|
||||
return api.EndpointsList{
|
||||
Items: []api.Endpoints{
|
||||
|
||||
Reference in New Issue
Block a user