mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
upgrade golang ci lint to 1.38.0 and fix lint error
This commit is contained in:
@@ -69,7 +69,7 @@ func (def *CapabilityComponentDefinition) GetCapabilityObject(ctx context.Contex
|
||||
}
|
||||
err := k8sClient.Get(ctx, objectKey, &componentDefinition)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to get ComponentDefinition %s: %v", def.Name, err)
|
||||
return nil, fmt.Errorf("failed to get ComponentDefinition %s: %w", def.Name, err)
|
||||
}
|
||||
def.ComponentDefinition = componentDefinition
|
||||
capability, err = util.ConvertTemplateJSON2Object(name, componentDefinition.Spec.Extension, componentDefinition.Spec.Schematic)
|
||||
|
||||
Reference in New Issue
Block a user