Skip to content

Commit 1cb7a19

Browse files
committed
fix: reverse condition
1 parent 419fb0f commit 1cb7a19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24943,7 +24943,7 @@ async function scanForDependencySize(messages, threshold, currentDeps, baseDeps,
2494324943
for (const [pkg, versions] of allOptionalVersions) {
2494424944
for (const version of versions) {
2494524945
const pkgMeta = await fetchPackageMetadata(pkg, version);
24946-
if (pkgMeta && isSupportedArchitecture(pkgMeta, "linux", "x64", "glibc")) {
24946+
if (pkgMeta && !isSupportedArchitecture(pkgMeta, "linux", "x64", "glibc")) {
2494724947
const entry = newVersions.findIndex(
2494824948
(v) => v.name === pkg && v.version === version
2494924949
);

src/checks/dependency-size.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function scanForDependencySize(
6969
const pkgMeta = await fetchPackageMetadata(pkg, version);
7070
if (
7171
pkgMeta &&
72-
isSupportedArchitecture(pkgMeta, 'linux', 'x64', 'glibc')
72+
!isSupportedArchitecture(pkgMeta, 'linux', 'x64', 'glibc')
7373
) {
7474
const entry = newVersions.findIndex(
7575
(v) => v.name === pkg && v.version === version

0 commit comments

Comments
 (0)