fix: fix incorrect nil return value (#6705)

Signed-off-by: huochexizhan <huochexizhan@outlook.com>
This commit is contained in:
huochexizhan
2025-03-02 09:23:56 -08:00
committed by GitHub
parent ead624e553
commit cd0b0988f9
+1 -1
View File
@@ -1368,7 +1368,7 @@ func getDependencyArgs(ctx context.Context, k8sClient client.Client, depName str
_, depErr := FetchAddonRelatedApp(ctx, k8sClient, depName)
if depErr != nil {
if !apierrors.IsNotFound(depErr) {
return nil, err
return nil, depErr
}
depArgs := map[string]interface{}{}
if addonClusters != nil {