isAvailable to isIdbAvailable
Summary: Make it more clear what are we checking about. Reviewed By: aigoncharov Differential Revision: D48781145 fbshipit-source-id: c3c03b407dc7f47730a3fb80de769243768b34ec
This commit is contained in:
committed by
Facebook GitHub Bot
parent
03c0874f30
commit
0045f15e2a
@@ -330,7 +330,7 @@ function isSimulatorAvailable(simulator: iOSSimulatorDevice): boolean {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function isAvailable(idbPath: string): Promise<boolean> {
|
async function isIdbAvailable(idbPath: string): Promise<boolean> {
|
||||||
if (!idbPath) {
|
if (!idbPath) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -389,9 +389,9 @@ export async function makeIOSBridge(
|
|||||||
idbPath: string,
|
idbPath: string,
|
||||||
isXcodeDetected: boolean,
|
isXcodeDetected: boolean,
|
||||||
enablePhysicalDevices: boolean,
|
enablePhysicalDevices: boolean,
|
||||||
isAvailableFn: (idbPath: string) => Promise<boolean> = isAvailable,
|
isAvailable: (idbPath: string) => Promise<boolean> = isIdbAvailable,
|
||||||
): Promise<IOSBridge> {
|
): Promise<IOSBridge> {
|
||||||
if (await isAvailableFn(idbPath)) {
|
if (await isAvailable(idbPath)) {
|
||||||
return new IDBBridge(idbPath, enablePhysicalDevices);
|
return new IDBBridge(idbPath, enablePhysicalDevices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user