Skip to content

Commit f7636f8

Browse files
vchimevvchimev
vchimev
authored and
vchimev
committed
refactor(utils): storage logic
1 parent 424b95c commit f7636f8

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/device-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class DeviceManger {
2121
return device;
2222
}
2323

24-
const allDevices = (await DeviceController.getDivices({ platform: args.appiumCaps.platformName }));
24+
const allDevices = (await DeviceController.getDevices({ platform: args.appiumCaps.platformName }));
2525
if (!allDevices || allDevices === null || allDevices.length === 0) {
2626
console.log("We couldn't find any devices. We will try to proceed to appium! Maybe avd manager is missing")
2727
console.log("Available devices:\n", allDevices);

lib/utils.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ export function isWin() {
233233
return /^win/.test(process.platform);
234234
}
235235

236-
237236
export function getStorageByDeviceName(args: INsCapabilities) {
238237
let storage = getStorage(args);
239238
const appName = getAppName(args);
@@ -264,10 +263,6 @@ function getStorage(args: INsCapabilities) {
264263
storage = createStorageFolder(storage, "images");
265264
}
266265

267-
const appName = getAppName(args);
268-
storage = createStorageFolder(storage, appName);
269-
storage = createStorageFolder(storage, args.appiumCaps.deviceName);
270-
271266
return storage;
272267
}
273268

0 commit comments

Comments
 (0)