Skip to content

Commit

Permalink
rpk: fix confusing-results lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwotj committed Feb 19, 2025
1 parent be86f95 commit 0d6b4a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/redpanda/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func updateConfigWithFlags(y *config.RedpandaYaml, flags *pflag.FlagSet) {
}
}

func parseConfigKvs(args []string) ([]string, []string) {
func parseConfigKvs(args []string) (parsedKVs []string, parsedArgs []string) {
setFlag := fmt.Sprintf("--%s", setConfigFlag)
kvs := []string{}
i := 0
Expand Down
4 changes: 2 additions & 2 deletions src/go/rpk/pkg/config/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ func Set[T any](p *T, key, value string) error {
// getField deeply search in v for the value that reflect field tags.
//
// The parentRawTag is the previous tag, and includes an index if there is one.
func getField(tags []string, parentRawTag string, v reflect.Value) (reflect.Value, reflect.Value, error) {
func getField(tags []string, parentRawTag string, v reflect.Value) (field reflect.Value, other reflect.Value, err error) {
// *At* the last element, we check if it is a slice. The final tag can
// still index into the slice and if that happens, we want to return
// the index:
Expand Down Expand Up @@ -1997,7 +1997,7 @@ func getField(tags []string, parentRawTag string, v reflect.Value) (reflect.Valu
// 1. if tag is found within the struct, return the field.
// 2. if tag is not found _but_ the struct has "Other" field, return Other.
// 3. Error if it can't find the given tag and "Other" field is unavailable.
func getFieldByTag(tag string, v reflect.Value) (reflect.Value, reflect.Value, error) {
func getFieldByTag(tag string, v reflect.Value) (newV reflect.Value, otherV reflect.Value, err error) {
var (
t = v.Type()
other bool
Expand Down

0 comments on commit 0d6b4a4

Please sign in to comment.