Remove error when no app bookmarks are found

Summary: App match patterns are not available for all apps, there is no reason to treat this as an error, currently errors are printed for apps like "Flipper".

Reviewed By: nikoant

Differential Revision: D25369648

fbshipit-source-id: a63aadbf14745310501565b00081602e44852398
This commit is contained in:
Michel Weststrate
2020-12-07 09:13:04 -08:00
committed by Facebook GitHub Bot
parent a091e7708e
commit b1140ae3f9

View File

@@ -44,7 +44,8 @@ export const getAppMatchPatterns = (
}
});
} else if (appName != null) {
reject(new Error('No rule for app ' + appName));
console.log('No rule for app ' + appName);
resolve([]);
} else {
reject(new Error('selectedApp was null'));
}