Commit 4e195bff authored by vipwzw's avatar vipwzw

fix linter

parent 8fdb6cbf
......@@ -251,7 +251,7 @@ type ExecutorType interface {
GetAssets(tx *Transaction) ([]*Asset, error)
}
type ExecTypeGet interface {
type execTypeGet interface {
GetTy() int32
}
......@@ -466,7 +466,7 @@ func (base *ExecTypeBase) ActionName(tx *Transaction) string {
return "unknown-err"
}
tm := base.child.GetTypeMap()
if get, ok := payload.(ExecTypeGet); ok {
if get, ok := payload.(execTypeGet); ok {
ty := get.GetTy()
for k, v := range tm {
if v == ty {
......
......@@ -87,15 +87,11 @@ func ListMethodByType(typ reflect.Type) map[string]reflect.Method {
return methods
}
type ExecutorAction interface {
GetTy() int32
}
var nilValue = reflect.ValueOf(nil)
func GetActionValue(action interface{}, funclist map[string]reflect.Method) (string, int32, reflect.Value) {
var ty int32
if a, ok := action.(ExecutorAction); ok {
if a, ok := action.(execTypeGet); ok {
ty = a.GetTy()
}
value := reflect.ValueOf(action)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment