Skip to content

Commit

Permalink
refactor: use &t
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Aug 6, 2022
1 parent 5641b97 commit c5d56ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func generateServiceName[T any]() string {
star := 0

if typeOfT == nil {
typeOfT = reflect.TypeOf(new(T))
typeOfT = reflect.TypeOf(&t)
}

for {
Expand Down

0 comments on commit c5d56ed

Please sign in to comment.