From f0220ca6c437d7eaab0d69dfd96cfce6727aa727 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Mon, 30 Nov 2020 23:38:30 +0100 Subject: [PATCH] code cleanup --- lib/cpu.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/cpu.js b/lib/cpu.js index 884df4e..b29ea98 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -17,7 +17,6 @@ const os = require('os'); const exec = require('child_process').exec; const fs = require('fs'); const util = require('./util'); -const { execSync } = require('child_process'); let _platform = process.platform; @@ -786,7 +785,7 @@ function cpuTemperature(callback) { } else if (value && label && result.main === -1) { result.main = Math.round(parseInt(value, 10) / 100) / 10; } - }) + }); if (result.cores.length > 0) { if (result.main === -1) {