Remove unnecessary sub-loop.

This commit is contained in:
Joachim Bauch 2020-07-31 14:58:23 +02:00
parent b8c9e816b3
commit 3f4693dca4
Failed to extract signature

View file

@ -180,9 +180,7 @@ func (b *BackendConfiguration) GetBackend(u *url.URL) *Backend {
func (b *BackendConfiguration) GetBackends() []*Backend {
var result []*Backend
for _, entries := range b.backends {
for _, entry := range entries {
result = append(result, entry)
}
result = append(result, entries...)
}
return result
}