lint compliance

pull/1/head
yflory 4 years ago
parent ecb674c42a
commit b45ab9c323

@ -20,7 +20,7 @@ define([
var minutes = min < 10 ? "0" + min : min.toString(); var minutes = min < 10 ? "0" + min : min.toString();
return year + month + day + "T" + hours + minutes + "00Z"; return year + month + day + "T" + hours + minutes + "00Z";
} };
var getDate = function (str, end) { var getDate = function (str, end) {
@ -45,7 +45,6 @@ define([
module.main = function (userDoc) { module.main = function (userDoc) {
var content = userDoc.content; var content = userDoc.content;
var md = userDoc.metadata;
var ICS = [ var ICS = [
'BEGIN:VCALENDAR', 'BEGIN:VCALENDAR',
@ -119,9 +118,10 @@ define([
var ICAL = window.ICAL; var ICAL = window.ICAL;
var res = {}; var res = {};
var vcalendar;
try { try {
var jcalData = ICAL.parse(content); var jcalData = ICAL.parse(content);
var vcalendar = new ICAL.Component(jcalData); vcalendar = new ICAL.Component(jcalData);
} catch (e) { } catch (e) {
return void cb(e); return void cb(e);
} }

@ -487,7 +487,7 @@ Messages.calendar_noNotification = "None";
'class': 'fa fa-upload', 'class': 'fa fa-upload',
}, },
content: h('span', Messages.importButton), content: h('span', Messages.importButton),
action: function (e) { action: function () {
UIElements.importContent('text/calendar', function (res) { UIElements.importContent('text/calendar', function (res) {
Export.import(res, id, function (err, json) { Export.import(res, id, function (err, json) {
if (err) { return void UI.warn(Messages.importError); } if (err) { return void UI.warn(Messages.importError); }

Loading…
Cancel
Save