fix linter

This commit is contained in:
d1slike committed 2020-06-03 14:04:49 +03:00
1 parent 2aff6210b5
commit 2d45f210db
1 file changed
+2 -1
+2 -1
View File
@@ -14,7 +14,8 @@ func InitRoutes(configs structure.RoutingConfig) {
newAddressMap := make(map[string]bool)
newInnerAddressMap := make(map[string]bool)
newAuthUserAddressMap := make(map[string]bool)
for _, backend := range configs {
for i := range configs {
backend := &configs[i]
if backend.Address.IP == "" || backend.Address.Port == "" || len(backend.Endpoints) == 0 {
continue
}