Coding style changes to better aling with common
practice
Change-Id: I826bc614da347bf7f36a80ecb3b21caa660ffca4
diff --git a/afrouter/afrouter/backend.go b/afrouter/afrouter/backend.go
index 1c9129e..6c97bb6 100644
--- a/afrouter/afrouter/backend.go
+++ b/afrouter/afrouter/backend.go
@@ -136,7 +136,7 @@
bClusters[bc.name] = bc
bc.startSerialNumberSource() // Serial numberere for active/active backends
idx := 0
- for _, bec := range(conf.Backends) {
+ for _, bec := range conf.Backends {
if bec.Name == "" {
log.Errorf("A backend must have a name in cluster %s\n", conf.Name)
rtrn_err = true
@@ -512,7 +512,7 @@
var rtrn error
atLeastOne := false
- for _,strm := range(strms.strms) {
+ for _,strm := range strms.strms {
if strm != nil {
if err := strm.strm.SendMsg(f); err != nil {
strm.s2cRtrn = err
@@ -523,7 +523,7 @@
// If one of the streams succeeded, declare success
// if none did pick an error and return it.
if atLeastOne == true {
- for _,strm := range(strms.strms) {
+ for _,strm := range strms.strms {
if strm != nil {
rtrn = strm.s2cRtrn
if rtrn == nil {
@@ -605,7 +605,7 @@
// Connections can consist of just a name. This allows for dynamic configuration
// at a later time.
// TODO: validate that there is one connection for all but active/active backends
- for _,cnConf := range(conf.Connections) {
+ for _,cnConf := range conf.Connections {
if cnConf.Name == "" {
log.Errorf("A connection must have a name for backend %s in cluster %s",
conf.Name, clusterName)