Skip to content

Commit

Permalink
fix gofmt problem in go1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
daizuozhuo committed Jul 21, 2015
1 parent fc310f8 commit 335a75b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/util/jsonpath/jsonpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,18 @@ func (j *JSONPath) walk(value []reflect.Value, node Node) ([]reflect.Value, erro

// evalInt evaluates IntNode
func (j *JSONPath) evalInt(input []reflect.Value, node *IntNode) ([]reflect.Value, error) {
result := []reflect.Value{}
for range input {
result = append(result, reflect.ValueOf(node.Value))
result := make([]reflect.Value, len(input))
for i := range input {
result[i] = reflect.ValueOf(node.Value)
}
return result, nil
}

// evalFloat evaluates FloatNode
func (j *JSONPath) evalFloat(input []reflect.Value, node *FloatNode) ([]reflect.Value, error) {
result := []reflect.Value{}
for range input {
result = append(result, reflect.ValueOf(node.Value))
result := make([]reflect.Value, len(input))
for i := range input {
result[i] = reflect.ValueOf(node.Value)
}
return result, nil
}
Expand Down

0 comments on commit 335a75b

Please sign in to comment.