Skip to content

Commit

Permalink
gofumpt foramt
Browse files Browse the repository at this point in the history
  • Loading branch information
DMwangnima committed Sep 12, 2023
1 parent 5b68f19 commit ee5da5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/hessian2/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (h *_refHolder) add(dest reflect.Value) {
var _refHolderPtrType = reflect.TypeOf(&_refHolder{})

// ReflectResponse reflect return value
func ReflectResponse(in interface{}, out interface{}) error {
func ReflectResponse(in, out interface{}) error {
if in == nil {
return fmt.Errorf("@in is nil")
}
Expand Down Expand Up @@ -324,7 +324,7 @@ func packPtr(v reflect.Value) reflect.Value {
}

// setValueToPtrDest set the raw value to a pointer dest.
func setValueToPtrDest(dest reflect.Value, v reflect.Value) {
func setValueToPtrDest(dest, v reflect.Value) {
// for number, the type of value may be different with the dest,
// must convert it to the correct type of value then set.
switch dest.Type() {
Expand Down
3 changes: 2 additions & 1 deletion tests/kitex/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package main

import (
"github.com/cloudwego/kitex/server"
"log"
"net"

"github.com/cloudwego/kitex/server"

echo "github.com/kitex-contrib/codec-dubbo/tests/kitex/kitex_gen/echo/testservice"
)

Expand Down

0 comments on commit ee5da5e

Please sign in to comment.