Skip to content

Commit dceebde

Browse files
authored
Fix TypeScript error with non-null assertion
1 parent 3538dd9 commit dceebde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-platform-android/src/commands/runAndroid/tryInstallAppOnDevice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function tryInstallAppOnDevice(
2626
// create path to output file, eg. `production/debug`
2727
// ensure multiflavored path is correct, e.g. `clientStagingDebug` -> `clientStaging/debug`
2828
const variantPath = variantFromSelectedTask
29-
? `${variantFromSelectedTask.slice(0, -1).join("")}/${variantFromSelectedTask.at(-1).toLocaleLowerCase()}`
29+
? `${variantFromSelectedTask.slice(0, -1).join("")}/${variantFromSelectedTask.at(-1)!.toLocaleLowerCase()}`
3030
: defaultVariant;
3131
// create output file name, eg. `production-debug`
3232
const variantAppName =

0 commit comments

Comments
 (0)