updated batteries code cleanup after merge pull

This commit is contained in:
Sebastian Hildebrandt
2021-06-10 16:47:42 +02:00
parent 3523eaad6d
commit fdf55c6c37
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ module.exports = function (callback) {
}
let designCapacities = data.results[1].split('\r\n');
let fullChargeCapacities = data.results[2].split('\r\n');
if (batteries && batteries.length) {
if (batteries.length) {
let first = false;
let additionalBatteries = [];
for (let i = 0; i < batteries.length; i++) {