Skip to content

Commit

Permalink
v4.0.0-dev8
Browse files Browse the repository at this point in the history
拦截器函数的参数移到接收器位置
  • Loading branch information
ForteScarlet committed Jan 18, 2024
1 parent aa59daf commit ccd3dae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ internal class KFunctionEventListenerProcessor {
grouped[FilterMode.INTERCEPTOR]?.forEach { (properties, matcher) ->
if (matcher != null) {
val priority = properties.priority
val interceptor = EventInterceptor { c ->
if (matcher.invoke(c.eventListenerContext)) c.invoke() else invalid()
val interceptor = EventInterceptor {
if (matcher.invoke(eventListenerContext)) invoke() else invalid()
}

onInterceptor(EventInterceptorData({
Expand Down

0 comments on commit ccd3dae

Please sign in to comment.