Skip to content

Commit

Permalink
*: replace reflect.TypeOf((*T)(nil)).Elem() with reflect.TypeFor[T]() (
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Oct 12, 2024
1 parent d700beb commit f0b3bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/disttask/framework/taskexecutor/execute/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type StepExecFrameworkInfo interface {
GetResource() *proto.StepResource
}

var stepExecFrameworkInfoName = reflect.TypeOf((*StepExecFrameworkInfo)(nil)).Elem().Name()
var stepExecFrameworkInfoName = reflect.TypeFor[StepExecFrameworkInfo]().Name()

type frameworkInfo struct {
resource *proto.StepResource
Expand Down

0 comments on commit f0b3bf0

Please sign in to comment.