Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
quinlanj committed Feb 1, 2025
1 parent 6726984 commit 4ed0e32
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/eas-cli/src/commands/fingerprint/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ export default class FingerprintCompare extends EasCommand {
Log.log(
`✅ ${capitalizeFirstLetter(
prettyPrintFingerprint(firstFingerprint, firstFingerprintOrigin)
)} matches fingerprint from ${prettyPrintFingerprint(
secondFingerprint,
secondFingerprintOrigin
)}`
)} matches ${prettyPrintFingerprint(secondFingerprint, secondFingerprintOrigin)}`
);
return;
} else {
Expand Down Expand Up @@ -322,7 +319,7 @@ async function getFingerprintInfoInteractiveAsync(
} else if (originType === FingerprintOriginType.Update) {
const selectedBranch = await selectBranchOnAppAsync(graphqlClient, {
projectId,
promptTitle: 'On which branch would you like search for an update to edit?',
promptTitle: 'On which branch would you like search for an update?',
displayTextForListItem: updateBranch => ({
title: updateBranch.name,
}),
Expand Down Expand Up @@ -744,11 +741,13 @@ function prettyPrintFingerprint(fingerprint: Fingerprint, origin: FingerprintOri
if (origin.type === FingerprintOriginType.Project) {
return `fingerprint ${fingerprint.hash} from local directory`;
} else if (origin.type === FingerprintOriginType.Update) {
return `fingerprint ${fingerprint.hash} from ${origin.update?.platform} ${origin.type}`;
return `fingerprint ${fingerprint.hash} from ${
origin.update?.platform ? stringToAppPlatform(origin.update?.platform) : ''
} ${origin.type}`;
} else if (origin.type === FingerprintOriginType.Build) {
return `fingerprint ${fingerprint.hash} from ${origin.build?.platform} ${origin.type}`;
}
return `fingerprint ${fingerprint.hash} from hash`;
return `fingerprint ${fingerprint.hash}`;
}

function capitalizeFirstLetter(string: string): string {
Expand Down

0 comments on commit 4ed0e32

Please sign in to comment.