Skip to content

Commit

Permalink
restore previous golint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhuang4704 committed Oct 14, 2024
1 parent cb468e5 commit 91fb427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/resource/csp_billing_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func GetCspConfig() api.RESTFedCspSupportResp {

if obj, err = global.ORCH.GetResource(RscTypeConfigMap, NvAdmSvcNamespace, "metering-archive"); err == nil {
if cm, ok := obj.(*corev1.ConfigMap); cm == nil || !ok {
log.WithFields(log.Fields{"err": "Error: Unknown type"}).Error()
err = fmt.Errorf("Error: Unknown type")
} else if cm.Data != nil {
resp.MeteringArchiveData = cm.Data["archive"]
}
Expand Down

0 comments on commit 91fb427

Please sign in to comment.