update linter version to 1.46.2

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani
2022-05-18 20:19:39 +00:00
committed by Ramkumar Chinchani
parent 32afe712d6
commit 287ac05ddc
6 changed files with 12 additions and 7 deletions
+3 -1
View File
@@ -116,7 +116,9 @@ func (ms *metricServer) ReceiveMetrics() interface{} {
return <-ms.cacheChan
}
func (ms *metricServer) IsEnabled() (b bool) {
func (ms *metricServer) IsEnabled() bool {
b := false
// send a bool value on the request channel to avoid data race
ms.reqChan <- b