Skip to content

Commit

Permalink
ignore exhaustive type check, already handled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ZetaoZhuang committed Jun 4, 2024
1 parent 13d2708 commit f12c33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cns/metrics/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func SendHeartBeat(ctx context.Context, heartbeatInterval time.Duration, homeAzM
// add azr metrics when channel mode is direct
if channelMode == cns.Direct {
getHomeAzResp := homeAzMonitor.GetHomeAz(ctx)
switch getHomeAzResp.Response.ReturnCode {
switch getHomeAzResp.Response.ReturnCode { //nolint:exhaustive // ignore exhaustive types check
case types.Success:
metric.CustomDimensions[logger.IsAZRSupportedStr] = strconv.FormatBool(getHomeAzResp.HomeAzResponse.IsSupported)
metric.CustomDimensions[logger.HomeAZStr] = strconv.FormatUint(uint64(getHomeAzResp.HomeAzResponse.HomeAz), 10)
Expand Down

0 comments on commit f12c33a

Please sign in to comment.