Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
linter, address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Feb 14, 2024
1 parent aa8ef9d commit 6e0f0e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (o *Install) populateConfig() error {
}
}

if len(o.config.Namespaces) == 0 {
if len(o.config.NamespacesList()) == 0 {
return errors.New("namespace list is empty. Specify the comma-separated list of namespaces using the --namespaces flag, at least one namespace is required")
}

Expand Down Expand Up @@ -358,7 +358,7 @@ func (o *Install) runEverestWizard() error {
o.config.Namespaces += "," + ns
}

if len(o.config.Namespaces) == 0 {
if len(o.config.NamespacesList()) == 0 {
return errors.New("namespace list is empty. Specify at least one namespace")
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (u *Upgrade) Run(ctx context.Context) error {
if err := u.runEverestWizard(ctx); err != nil {
return err
}
if len(u.config.Namespaces) == 0 {
if len(u.config.NamespacesList()) == 0 {
return errors.New("namespace list is empty. Specify at least one namespace")
}
if err := u.upgradeOLM(ctx); err != nil {
Expand Down

0 comments on commit 6e0f0e1

Please sign in to comment.