Skip to content

Commit eb26d57

Browse files
committed
code style
1 parent 989d5ea commit eb26d57

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

app/plugins/miscellanea/alarm-clock/UIConfig.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"enabled",
1616
"hour",
1717
"minute",
18-
"monday",
19-
"tuesday",
20-
"wednesday",
21-
"thursday",
22-
"friday",
23-
"saturday",
24-
"sunday"
18+
"monday",
19+
"tuesday",
20+
"wednesday",
21+
"thursday",
22+
"friday",
23+
"saturday",
24+
"sunday"
2525
]
2626
},
2727
"content": [
@@ -391,8 +391,6 @@
391391
"value":59,
392392
"label": "59"
393393
}
394-
395-
396394
],
397395
"visibleIf": {
398396
"field": "enabled",

app/plugins/miscellanea/alarm-clock/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ AlarmClock.prototype.clearJobs = function () {
141141

142142
AlarmClock.prototype.applyConf = function(conf) {
143143
var self = this;
144-
144+
145145
for (var i in conf) {
146146
var item = conf[i];
147147
var d = new Date(item.time);
@@ -150,25 +150,25 @@ AlarmClock.prototype.applyConf = function(conf) {
150150
var schedule = require('node-schedule');
151151
var rule = new schedule.RecurrenceRule();
152152
rule.dayOfWeek = [];
153-
if (item.monday) {
153+
if (item.monday) {
154154
rule.dayOfWeek.push(1);
155155
}
156-
if (item.tuesday) {
156+
if (item.tuesday) {
157157
rule.dayOfWeek.push(2);
158158
}
159-
if (item.wednesday) {
159+
if (item.wednesday) {
160160
rule.dayOfWeek.push(3);
161161
}
162-
if (item.thursday) {
162+
if (item.thursday) {
163163
rule.dayOfWeek.push(4);
164164
}
165-
if (item.friday) {
165+
if (item.friday) {
166166
rule.dayOfWeek.push(5);
167167
}
168-
if (item.saturday) {
168+
if (item.saturday) {
169169
rule.dayOfWeek.push(6);
170170
}
171-
if (item.sunday) {
171+
if (item.sunday) {
172172
rule.dayOfWeek.push(7);
173173
}
174174
rule.minute = d.getMinutes();
@@ -280,7 +280,7 @@ AlarmClock.prototype.getSleep = function()
280280
var sleep_action = sleepTask.sleep_action;
281281
if (sleepTask.sleep_action == "stop") {
282282
var sleep_actionText = self.commandRouter.getI18nString('ALARM.STOP_MUSIC');
283-
} else if (sleepTask.sleep_action == "poweroff"){
283+
} else if (sleepTask.sleep_action == "poweroff") {
284284
var sleep_actionText = self.commandRouter.getI18nString('ALARM.TURN_OFF');
285285
}
286286
} else {

0 commit comments

Comments
 (0)