From cdeea8944d4c9debb890ae62a7a27be71b66081b Mon Sep 17 00:00:00 2001 From: David Pertiller Date: Thu, 29 Feb 2024 14:03:27 +0100 Subject: [PATCH] docs(README): update hot-reloading code for rxjs-spy-devtools-plugin The check for module.hot was done twice, resulting in an unnecessary condition. --- packages/rxjs-spy-devtools-plugin/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/rxjs-spy-devtools-plugin/README.md b/packages/rxjs-spy-devtools-plugin/README.md index 39ff9d0..7ad3185 100644 --- a/packages/rxjs-spy-devtools-plugin/README.md +++ b/packages/rxjs-spy-devtools-plugin/README.md @@ -17,11 +17,9 @@ spy.plug(devtoolsPlugin); // We must teardown the spy if we're hot-reloading: if (module.hot) { - if (module.hot) { - module.hot.dispose(() => { - spy.teardown(); - }); - } + module.hot.dispose(() => { + spy.teardown(); + }); } ```