chore: fix lint

This commit is contained in:
Samuel Attard
2023-11-20 17:02:16 -08:00
parent 20b1b02c11
commit 57201b124c

View File

@@ -186,11 +186,15 @@ export const makeUniversalApp = async (opts: MakeUniversalOpts): Promise<void> =
path.resolve(opts.arm64AppPath, 'Contents', 'Resources', 'app'), path.resolve(opts.arm64AppPath, 'Contents', 'Resources', 'app'),
{ compareSize: true, compareContent: true }, { compareSize: true, compareContent: true },
); );
const differences = comparison.diffSet! const differences = comparison.diffSet!.filter((difference) => difference.state !== 'equal');
.filter(difference => difference.state !== "equal")
d(`Found ${differences.length} difference(s) between the x64 and arm64 folders`); d(`Found ${differences.length} difference(s) between the x64 and arm64 folders`);
const nonMergedDifferences = differences const nonMergedDifferences = differences.filter(
.filter(difference => !difference.name1 || !knownMergedMachOFiles.has(path.join('Contents', 'Resources', 'app', difference.relativePath, difference.name1))) (difference) =>
!difference.name1 ||
!knownMergedMachOFiles.has(
path.join('Contents', 'Resources', 'app', difference.relativePath, difference.name1),
),
);
d(`After discluding MachO files merged with lipo ${nonMergedDifferences.length} remain.`); d(`After discluding MachO files merged with lipo ${nonMergedDifferences.length} remain.`);
if (nonMergedDifferences.length > 0) { if (nonMergedDifferences.length > 0) {