Skip to content

Commit

Permalink
Address PR Review Feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Maninderjit Bindra <maninder.bindra@gmail.com>
  • Loading branch information
maniSbindra committed Aug 31, 2023
1 parent 245337f commit 053149a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pkg/porter/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const (

// ListOptions represent generic options for use by Porter's list commands
type ListOptions struct {
installationOptions
printer.PrintOptions
AllNamespaces bool
Namespace string
Expand Down Expand Up @@ -366,7 +365,7 @@ func doesInstallationMatchFieldSelectors(installation DisplayInstallation, field

// Check if the installation has the field with the value
// e.g. installationHasFieldWithValue(installation, "bundle.version", "0.2.0") => true if installation.Bundle.Version (for which json tag is bunde.version) == "0.2.0"
func installationHasFieldWithValue(installation DisplayInstallation, fieldJsonTagPath string, value interface{}) bool {
func installationHasFieldWithValue(installation DisplayInstallation, fieldJsonTagPath string, value string) bool {

fieldJsonTagPathParts := strings.Split(fieldJsonTagPath, ".")
current := reflect.ValueOf(installation)
Expand Down
2 changes: 1 addition & 1 deletion pkg/porter/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func Test_installationHasFieldWithValue(t *testing.T) {
type args struct {
installation DisplayInstallation
fieldJsonTagPath string
value interface{}
value string
}
tests := []struct {
name string
Expand Down

0 comments on commit 053149a

Please sign in to comment.