Skip to content

Commit 7496e4b

Browse files
committed
Simplify archive pattern branch for readability
1 parent cc50b8d commit 7496e4b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

packages/build-tools/src/utils/expoUpdatesEmbedded.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ export async function uploadEmbeddedBundleAsync(ctx: BuildContext<BuildJob>): Pr
2626
const channel = ctx.job.updates?.channel;
2727
const projectDir = ctx.getReactNativeProjectDirectory();
2828

29-
const archivePattern =
30-
platform === Platform.IOS
31-
? resolveArtifactPath(ctx as BuildContext<Ios.Job>)
32-
: ((ctx as BuildContext<Android.Job>).job.applicationArchivePath ??
33-
'android/app/build/outputs/**/*.{apk,aab}');
29+
let archivePattern: string;
30+
if (platform === Platform.IOS) {
31+
archivePattern = resolveArtifactPath(ctx as BuildContext<Ios.Job>);
32+
} else {
33+
archivePattern =
34+
(ctx as BuildContext<Android.Job>).job.applicationArchivePath ??
35+
'android/app/build/outputs/**/*.{apk,aab}';
36+
}
3437

3538
const [archivePath] = await findArtifacts({
3639
rootDir: projectDir,

0 commit comments

Comments
 (0)