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
This commit is contained in:
Anton Nikolaev
2021-03-05 03:48:20 -08:00
committed by Facebook GitHub Bot
parent b95058421d
commit 095667b742

View File

@@ -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 {