From 095667b742d5d4297ee3aa22d99031f8c27f88db Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Fri, 5 Mar 2021 03:48:20 -0800 Subject: [PATCH] Fix "failed to find appMatchPatterns" error Summary: Fixed an error which happens on second and subsequent device connection to Flipper Reviewed By: passy Differential Revision: D26829255 fbshipit-source-id: 17eb603647626a2168e330ec67f4a89783219356 --- desktop/plugins/navigation/util/appMatchPatterns.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/plugins/navigation/util/appMatchPatterns.tsx b/desktop/plugins/navigation/util/appMatchPatterns.tsx index 16fa1b1e0..7b516b65c 100644 --- a/desktop/plugins/navigation/util/appMatchPatterns.tsx +++ b/desktop/plugins/navigation/util/appMatchPatterns.tsx @@ -43,8 +43,8 @@ export const getAppMatchPatterns = ( } else { return; } - patternsPath = path.join(getPatternsBasePath(), filename); - fs.readFile(patternsPath, (err, data) => { + const patternsFilePath = path.join(getPatternsBasePath(), filename); + fs.readFile(patternsFilePath, (err, data) => { if (err) { reject(err); } else {