Skip to content

Commit 9dc51b8

Browse files
committed
Remove unnecessary check as name field is already validated
Signed-off-by: Shiva Krishna, Merla <[email protected]>
1 parent d18df53 commit 9dc51b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/nemocustomizer_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ func (r *NemoCustomizerReconciler) addModelDownloadJobsConfig(ctx context.Contex
579579
}
580580

581581
// add HF secret if present
582-
if n.Spec.ModelDownloadJobs.HFSecret != nil && n.Spec.ModelDownloadJobs.HFSecret.Name != "" {
582+
if n.Spec.ModelDownloadJobs.HFSecret != nil {
583583
modelDownloadJobsCfg["hfSecretName"] = n.Spec.ModelDownloadJobs.HFSecret.Name
584584
modelDownloadJobsCfg["hfSecretKey"] = n.Spec.ModelDownloadJobs.HFSecret.Key
585585
}

0 commit comments

Comments
 (0)