From 0045f15e2a29b3a368d57235097ce1b905297112 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Wed, 30 Aug 2023 04:24:05 -0700 Subject: [PATCH] isAvailable to isIdbAvailable Summary: Make it more clear what are we checking about. Reviewed By: aigoncharov Differential Revision: D48781145 fbshipit-source-id: c3c03b407dc7f47730a3fb80de769243768b34ec --- desktop/flipper-server-core/src/devices/ios/IOSBridge.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/flipper-server-core/src/devices/ios/IOSBridge.tsx b/desktop/flipper-server-core/src/devices/ios/IOSBridge.tsx index 566e9b4aa..4bb7c98bc 100644 --- a/desktop/flipper-server-core/src/devices/ios/IOSBridge.tsx +++ b/desktop/flipper-server-core/src/devices/ios/IOSBridge.tsx @@ -330,7 +330,7 @@ function isSimulatorAvailable(simulator: iOSSimulatorDevice): boolean { ); } -async function isAvailable(idbPath: string): Promise { +async function isIdbAvailable(idbPath: string): Promise { if (!idbPath) { return false; } @@ -389,9 +389,9 @@ export async function makeIOSBridge( idbPath: string, isXcodeDetected: boolean, enablePhysicalDevices: boolean, - isAvailableFn: (idbPath: string) => Promise = isAvailable, + isAvailable: (idbPath: string) => Promise = isIdbAvailable, ): Promise { - if (await isAvailableFn(idbPath)) { + if (await isAvailable(idbPath)) { return new IDBBridge(idbPath, enablePhysicalDevices); }