From c7ae9864468a9563490414b29245360b7a618609 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sun, 17 Aug 2025 18:35:27 +0100 Subject: [PATCH] smartbatt: use object-shorthand --- apps/smartbatt/clkinfo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/smartbatt/clkinfo.js b/apps/smartbatt/clkinfo.js index aec3c735d..e07646f87 100644 --- a/apps/smartbatt/clkinfo.js +++ b/apps/smartbatt/clkinfo.js @@ -43,10 +43,10 @@ //update clock info according to batt state if (Bangle.isCharging()) { - return { text: batt+"%", img : img}; + return { text: batt+"%", img }; } else{ - return { text: getHrsFormatted(data.hrsLeft), img : img}; + return { text: getHrsFormatted(data.hrsLeft), img }; } }, @@ -66,7 +66,7 @@ get : () => { drawBatt() var data=require("smartbatt").get(); - return { text: data.avgDrainage.toFixed(2)+"/h", img : img}; + return { text: data.avgDrainage.toFixed(2)+"/h", img }; }, show : function() {