Skip to content

Commit

Permalink
type assertion to the same type: currentIntercept already has type Sc…
Browse files Browse the repository at this point in the history
…hemaIntercepter
  • Loading branch information
romain-dartigues committed May 15, 2024
1 parent 6d85d81 commit c710fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interceptor/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func schema(current, found interface{}) (interface{}, error) {
schema = found
}
if currentIntercept, ok := schema.(SchemaIntercepter); ok {
err := currentIntercept.(SchemaIntercepter).Intercept(found)
err := currentIntercept.Intercept(found)
return schema, err
}
currentType := reflect.TypeOf(schema)
Expand Down

0 comments on commit c710fa9

Please sign in to comment.