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 {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user