Skip to content

Commit 6ee6c4c

Browse files
committed
Refactor native module loading to use node-gyp-build, removing platform/architecture error handling.
1 parent b3eae41 commit 6ee6c4c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ function loadNative() {
1212
return require('./prebuilds/linux-arm64/node-hdiffpatch.node');
1313
}
1414

15-
const combo = `${platform}-${arch}`;
16-
throw new Error(
17-
`Unsupported platform/arch: ${combo}. ` +
18-
'No prebuilt binary is available for this platform.'
19-
);
15+
return require('node-gyp-build')(__dirname);
2016
}
2117

2218
const native = loadNative();

0 commit comments

Comments
 (0)