Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/node/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
fs.chmodSync(getCKBBinaryPath(version), '755'); // Make the binary executable

logger.info(`CKB ${version} installed successfully.`);
} catch (error) {
logger.error('Error installing dependency binary:', error);
} catch (error: unknown) {
logger.error('Error installing dependency binary:', (error as Error).message);
}
}

Expand Down Expand Up @@ -159,7 +159,7 @@
const CPUFeatures = require('cpu-features');
const features = CPUFeatures();
if (features.arch === 'x86') {
const flags = features.flags as any; // CPUFeatures.X86CpuFlags

Check warning on line 162 in src/node/install.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 162 in src/node/install.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
// if lacks any of the following instruction, use portable binary
cachedIsPortable = !(flags.avx2 && flags.sse4_2 && flags.bmi2 && flags.pclmulqdq);
} else {
Expand Down
Loading