Skip to content

Commit

Permalink
Removed whitespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshuVmware committed Aug 23, 2024
1 parent 19f6cf4 commit e79f450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/pkg/kctrl/cmd/package/repository/add_or_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (o *AddOrUpdateOptions) updateExistingPackageRepository(pkgr *kcpkg.Package
ImgpkgBundle: &kappctrl.AppFetchImgpkgBundle{Image: o.URL},
}

if strings.TrimSpace(o.Secret) != "" {
if o.Secret != "" {
pkgr.Spec.Fetch.ImgpkgBundle.SecretRef = &kappctrl.AppFetchLocalRef{Name: o.Secret}
}

Expand Down Expand Up @@ -323,7 +323,7 @@ func (o AddOrUpdateOptions) dryRun() error {
},
}

if strings.TrimSpace(o.Secret) != "" {
if o.Secret != "" {
packageRepo.Spec.Fetch.ImgpkgBundle.SecretRef = &kappctrl.AppFetchLocalRef{Name: o.Secret}
}

Expand Down

0 comments on commit e79f450

Please sign in to comment.