Skip to content

Commit

Permalink
Merge pull request #406 from fangyincheng/develop
Browse files Browse the repository at this point in the history
Mod: delete a judgment condition
  • Loading branch information
AlexStocks authored Mar 14, 2020
2 parents 3030327 + 9279a28 commit f01d60d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions config_center/parser/configuration_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,10 @@ func getParamString(item ConfigItem) (string, error) {
"you want to change in the rule.")
}
for k, v := range params {
retStr = retStr + "&"
retStr = retStr + k
retStr = retStr + "="
retStr = retStr + v
retStr += "&" + k + "=" + v
}

if len(item.ProviderAddresses) >= 0 {
retStr = retStr + "&"
retStr = retStr + constant.OVERRIDE_PROVIDERS_KEY
retStr = retStr + "="
retStr = retStr + strings.Join(item.ProviderAddresses, ",")
}
retStr += "&" + constant.OVERRIDE_PROVIDERS_KEY + "=" + strings.Join(item.ProviderAddresses, ",")

return retStr, nil
}
Expand Down

0 comments on commit f01d60d

Please sign in to comment.