From e71aabf1f83aa7240ddb7c4b48c684170d8b845f Mon Sep 17 00:00:00 2001
From: willson-chen <willson.chenwx@gmail.com>
Date: Wed, 24 Jun 2020 21:01:17 +0800
Subject: [PATCH] Simplify the assignment of override

---
 registry/base_configuration_listener.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registry/base_configuration_listener.go b/registry/base_configuration_listener.go
index f9c34c1c9..d8c8cc877 100644
--- a/registry/base_configuration_listener.go
+++ b/registry/base_configuration_listener.go
@@ -101,7 +101,7 @@ func ToConfigurators(urls []*common.URL, f func(url *common.URL) config_center.C
 			break
 		}
 
-		var override map[string][]string = url.GetParams()
+		override := url.GetParams()
 		delete(override, constant.ANYHOST_KEY)
 		if len(override) == 0 {
 			configurators = nil
-- 
GitLab