From a46b7c2e78e79d5b247e1751ed58d0e84a233550 Mon Sep 17 00:00:00 2001 From: Vova-SH <60854798+Vova-SH@users.noreply.github.com> Date: Fri, 3 Mar 2023 10:38:42 -0800 Subject: [PATCH] Fix example code on setup leakCanary plugin (#4566) Summary: Fix sample for install leak canary plugin ## Changelog add brackets on sample code Pull Request resolved: https://github.com/facebook/flipper/pull/4566 Test Plan: - Reviewed By: antonk52 Differential Revision: D43766946 Pulled By: passy fbshipit-source-id: 4bded0122330ab4186745a9f5b2dcbd511318ee3 --- desktop/plugins/public/leak_canary/docs/setup.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/plugins/public/leak_canary/docs/setup.mdx b/desktop/plugins/public/leak_canary/docs/setup.mdx index 09f18c397..8b7c47add 100644 --- a/desktop/plugins/public/leak_canary/docs/setup.mdx +++ b/desktop/plugins/public/leak_canary/docs/setup.mdx @@ -28,7 +28,7 @@ import com.facebook.flipper.plugins.leakcanary2.LeakCanary2FlipperPlugin set the flipper listener in leak canary config */ LeakCanary.config = LeakCanary.config.run { - copy(eventListeners = eventListeners + FlipperLeakEventListener) + copy(eventListeners = eventListeners + FlipperLeakEventListener()) } SoLoader.init(this, false)