Skip to content

Commit d973ed9

Browse files
committed
fix lint issues
1 parent bab9b71 commit d973ed9

File tree

4 files changed

+167
-167
lines changed

4 files changed

+167
-167
lines changed

modules/default/calendar/calendar.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Module.register("calendar", {
168168

169169
this.selfUpdate();
170170
},
171-
notificationReceived(notification,payload,sender){
171+
notificationReceived (notification, payload, sender) {
172172

173173
if (notification === "FETCH_CALENDAR") {
174174
if (this.hasCalendarURL(payload.url)) {
@@ -424,8 +424,8 @@ Module.register("calendar", {
424424
if (this.config.showEnd) {
425425
// andhas a duation
426426
if (event.startDate !== event.endDate) {
427-
timeWrapper.innerHTML += "-";
428-
timeWrapper.innerHTML += CalendarUtils.capFirst(moment(event.endDate, "x").format(this.config.dateEndFormat));
427+
timeWrapper.innerHTML += "-";
428+
timeWrapper.innerHTML += CalendarUtils.capFirst(moment(event.endDate, "x").format(this.config.dateEndFormat));
429429
}
430430
}
431431

@@ -435,7 +435,7 @@ Module.register("calendar", {
435435
event.endDate -= ONE_SECOND;
436436
timeWrapper.innerHTML = CalendarUtils.capFirst(moment(event.startDate, "x").format(this.config.fullDayEventDateFormat));
437437
// only show end if requested and allowed and the dates are different
438-
if (this.config.showEnd && !this.config.showEndsOnlyWithDuration && moment(event.startDate,"x").format("YYYYMMDD") !== moment(event.endDate,"x").format("YYYYMMDD")) {
438+
if (this.config.showEnd && !this.config.showEndsOnlyWithDuration && moment(event.startDate, "x").format("YYYYMMDD") !== moment(event.endDate, "x").format("YYYYMMDD")) {
439439
timeWrapper.innerHTML += "-";
440440
timeWrapper.innerHTML += CalendarUtils.capFirst(moment(event.endDate, "x").format(this.config.fullDayEventDateFormat));
441441
}
@@ -896,10 +896,8 @@ Module.register("calendar", {
896896
let p = this.getCalendarProperty(url, property, defaultValue);
897897
if (property === "symbol" || property === "recurringSymbol" || property === "fullDaySymbol") {
898898
const className = this.getCalendarProperty(url, "symbolClassName", this.config.defaultSymbolClassName);
899-
if(p instanceof Array)
900-
p.push(className)
901-
else
902-
p = className + p;
899+
if (p instanceof Array) p.push(className);
900+
else p = className + p;
903901
}
904902

905903
if (!(p instanceof Array)) p = [p];

modules/default/calendar/calendarfetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
5656

5757
try {
5858
data = ical.parseICS(responseData);
59-
Log.debug(`parsed data=${JSON.stringify(data,null,2)}`);
59+
Log.debug(`parsed data=${JSON.stringify(data, null, 2)}`);
6060
events = CalendarFetcherUtils.filterEvents(data, {
6161
excludedEvents,
6262
includePastEvents,

0 commit comments

Comments
 (0)