Skip to content

Commit

Permalink
Improve naming of resolver (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Schlicht <[email protected]>
  • Loading branch information
Jan Schlicht authored Jul 24, 2020
1 parent ea31d18 commit 511fbe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ func updateOperator(
) (err error) {
operatorName := fmt.Sprintf("%s-%s", operator.Name, version.Version())

r, err := resolver.New(operator, version)
resolver, err := resolver.New(operator, version)
if err != nil {
return fmt.Errorf("failed to resolve operator %q: %v", operatorName, err)
}

pkgFs, remover, err := r.Resolve(ctx)
pkgFs, remover, err := resolver.Resolve(ctx)
if err != nil {
return fmt.Errorf("failed to resolve operator %q: %v", operatorName, err)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ func validateOperator(
) (err error) {
operatorName := fmt.Sprintf("%s-%s", operator.Name, version.Version())

r, err := resolver.New(operator, version)
resolver, err := resolver.New(operator, version)
if err != nil {
return fmt.Errorf("failed to resolve operator %q: %v", operatorName, err)
}

pkgFs, remover, err := r.Resolve(ctx)
pkgFs, remover, err := resolver.Resolve(ctx)
if err != nil {
return fmt.Errorf("failed to resolve operator %q: %v", operatorName, err)
}
Expand Down

0 comments on commit 511fbe8

Please sign in to comment.