Housekeeping & Make ESLint Happy

This commit is contained in:
SukkaW
2024-11-24 15:10:50 +08:00
parent 461ec70eea
commit 279c528d6b
3 changed files with 214 additions and 215 deletions

View File

@@ -46,9 +46,8 @@ process.on('unhandledRejection', (reason) => {
console.log(`V8: ${process.versions.v8}`);
const cpus = os.cpus()
.map(cpu => cpu.model)
.reduce<Record<string, number>>((o, model) => {
o[model] = (o[model] || 0) + 1;
.reduce<Record<string, number>>((o, cpu) => {
o[cpu.model] = (o[cpu.model] || 0) + 1;
return o;
}, {});