Skip to content

Commit c7ae986

Browse files
committed
smartbatt: use object-shorthand
1 parent c138ba0 commit c7ae986

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/smartbatt/clkinfo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343

4444
//update clock info according to batt state
4545
if (Bangle.isCharging()) {
46-
return { text: batt+"%", img : img};
46+
return { text: batt+"%", img };
4747
}
4848
else{
49-
return { text: getHrsFormatted(data.hrsLeft), img : img};
49+
return { text: getHrsFormatted(data.hrsLeft), img };
5050
}
5151
},
5252

@@ -66,7 +66,7 @@
6666
get : () => {
6767
drawBatt()
6868
var data=require("smartbatt").get();
69-
return { text: data.avgDrainage.toFixed(2)+"/h", img : img};
69+
return { text: data.avgDrainage.toFixed(2)+"/h", img };
7070
},
7171

7272
show : function() {

0 commit comments

Comments
 (0)