From d62802a30441ef53ebf9cf5af9019629b99ac1d7 Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Thu, 10 Apr 2025 12:11:13 +0300 Subject: [PATCH] fix: avoid performing nil check for userData --- 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