From b45ab9c323f2922764adde7124343690d8754e46 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 19 Apr 2021 13:08:38 +0200 Subject: [PATCH] lint compliance --- www/calendar/export.js | 6 +++--- www/calendar/inner.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/calendar/export.js b/www/calendar/export.js index 6019290c6..146ba5880 100644 --- a/www/calendar/export.js +++ b/www/calendar/export.js @@ -20,7 +20,7 @@ define([ var minutes = min < 10 ? "0" + min : min.toString(); return year + month + day + "T" + hours + minutes + "00Z"; - } + }; var getDate = function (str, end) { @@ -45,7 +45,6 @@ define([ module.main = function (userDoc) { var content = userDoc.content; - var md = userDoc.metadata; var ICS = [ 'BEGIN:VCALENDAR', @@ -119,9 +118,10 @@ define([ var ICAL = window.ICAL; var res = {}; + var vcalendar; try { var jcalData = ICAL.parse(content); - var vcalendar = new ICAL.Component(jcalData); + vcalendar = new ICAL.Component(jcalData); } catch (e) { return void cb(e); } diff --git a/www/calendar/inner.js b/www/calendar/inner.js index 43e5f15df..55ec3666e 100644 --- a/www/calendar/inner.js +++ b/www/calendar/inner.js @@ -487,7 +487,7 @@ Messages.calendar_noNotification = "None"; 'class': 'fa fa-upload', }, content: h('span', Messages.importButton), - action: function (e) { + action: function () { UIElements.importContent('text/calendar', function (res) { Export.import(res, id, function (err, json) { if (err) { return void UI.warn(Messages.importError); }