mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Housekeeping & Make ESLint Happy
This commit is contained in:
@@ -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;
|
||||
}, {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user