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

View File

@ -64,6 +64,7 @@
<li>Miłosz Dźwigała <a href="https://github.com/mily20001" rel="nofollow">mily20001</a></li>
<li>cconley717 <a href="https://github.com/cconley717" rel="nofollow">cconley717</a></li>
<li>Maria Camila Cubides <a href="https://github.com/MariaCamilaCubides" rel="nofollow">MariaCamilaCubides</a></li>
<li>Aleksander Krasnicki <a href="https://github.com/plakak" rel="nofollow">plakak</a></li>
</ul>
<p>OSX Temperature: credits here are going to:</p>
<ul>
@ -121,4 +122,4 @@
</script>
</body>
</html>
</html>

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++) {