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:
committed by
Facebook GitHub Bot
parent
b95058421d
commit
095667b742
@@ -43,8 +43,8 @@ export const getAppMatchPatterns = (
|
|||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
patternsPath = path.join(getPatternsBasePath(), filename);
|
const patternsFilePath = path.join(getPatternsBasePath(), filename);
|
||||||
fs.readFile(patternsPath, (err, data) => {
|
fs.readFile(patternsFilePath, (err, data) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject(err);
|
reject(err);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user