Skip to content

Commit ab5486f

Browse files
committed
chore: cleanup index.js logic
1 parent 7cf6295 commit ab5486f

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

index.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@ switch (platform) {
2222
loadError = e;
2323
}
2424
break;
25-
case 'arm64':
26-
localFileExisted = existsSync(join(__dirname, 'zstd.win32-arm64-msvc.node'));
27-
try {
28-
if (localFileExisted) {
29-
nativeBinding = require('./zstd.win32-arm64-msvc.node');
30-
} else {
31-
nativeBinding = require('@mongodb-js/zstd-win32-arm64-msvc');
32-
}
33-
} catch (e) {
34-
loadError = e;
35-
}
36-
break;
3725
default:
3826
throw new Error(`Unsupported architecture on Windows: ${arch}`);
3927
}
@@ -68,21 +56,6 @@ switch (platform) {
6856
throw new Error(`Unsupported architecture on macOS: ${arch}`);
6957
}
7058
break;
71-
case 'freebsd':
72-
if (arch !== 'x64') {
73-
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`);
74-
}
75-
localFileExisted = existsSync(join(__dirname, 'zstd.freebsd-x64.node'));
76-
try {
77-
if (localFileExisted) {
78-
nativeBinding = require('./zstd.freebsd-x64.node');
79-
} else {
80-
nativeBinding = require('@mongodb-js/zstd-freebsd-x64');
81-
}
82-
} catch (e) {
83-
loadError = e;
84-
}
85-
break;
8659
case 'linux':
8760
switch (arch) {
8861
case 'x64':

0 commit comments

Comments
 (0)