From dffad311a23c40f1f941deb413147e4708d90358 Mon Sep 17 00:00:00 2001 From: gabrielmer <101006718+gabrielmer@users.noreply.github.com> Date: Thu, 10 Apr 2025 14:34:54 +0300 Subject: [PATCH] fix: avoid performing nil check for userData (#3365) --- library/libwaku.nim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/libwaku.nim b/library/libwaku.nim index ebe730da8..23600aca4 100644 --- a/library/libwaku.nim +++ b/library/libwaku.nim @@ -52,10 +52,6 @@ template callEventCallback(ctx: ptr WakuContext, eventName: string, body: untype error eventName & " - eventCallback is nil" return - if isNil(ctx[].eventUserData): - error eventName & " - eventUserData is nil" - return - foreignThreadGc: try: let event = body