Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function createAfcClient (udid, bundleId, containerType) {
if (!bundleId) {
return await services.startAfcService(udid);
}
const service = await services.startHouseArrestService(udid);
if (isDocuments(containerType)) {
return await service.vendDocuments(bundleId);
} else {
return await service.vendContainer(bundleId);
}
}