package switchboard

import "encoding/json"

type backendsPresenter struct {
	backends Backends
}

func NewBackendsPresenter(backends Backends) backendsPresenter {
	return backendsPresenter{
		backends: backends,
	}
}

func (bp backendsPresenter) Present() ([]byte, error) {
	backendsResponse := []string{}
	for _ = range bp.backends.All() {
		backendsResponse = append(backendsResponse, "")
	}

	return json.Marshal(backendsResponse)
}

package switchboard

import "encoding/json"

type backendsPresenter struct {
	backends Backends
}

func NewBackendsPresenter(backends Backends) backendsPresenter {
	return backendsPresenter{
		backends: backends,
	}
}

func (bp backendsPresenter) Present() ([]byte, error) {
	backendsResponse := []string{}
	for range bp.backends.All() {
		backendsResponse = append(backendsResponse, "")
	}

	return json.Marshal(backendsResponse)
}

--- 
+++ 
@@ -14,7 +14,7 @@
 
 func (bp backendsPresenter) Present() ([]byte, error) {
 	backendsResponse := []string{}
-	for range bp.backends.All() {
+	for _ = range bp.backends.All() {
 		backendsResponse = append(backendsResponse, "")
 	}
 
Use 1.3.3. compatible syntax for now

[#81149294]
