VOL-2625 - fix SCA issues
Change-Id: If32cc66371f53040dc242679934a642a9488221a
diff --git a/internal/pkg/openflow/stats.go b/internal/pkg/openflow/stats.go
index 97d389b..613b476 100644
--- a/internal/pkg/openflow/stats.go
+++ b/internal/pkg/openflow/stats.go
@@ -152,7 +152,7 @@
"request": reqJs,
"response": resJs})
}
- ofc.SendMessage(response)
+ return ofc.SendMessage(response)
case ofp.OFPSTGroupDesc:
statsReq := request.(*ofp.GroupDescStatsRequest)
response, err := ofc.handleGroupStatsDescRequest(statsReq)
@@ -370,7 +370,6 @@
}
entry.Instructions = instructions
entry.Length = entrySize
- entrySize = 0
flow = append(flow, entry)
}
response.SetEntries(flow)