Remove some unused variables (#3301)

I have noticed unused variables that seem superfluous.
This commit is contained in:
Kristjan ESPERANTO
2023-12-23 07:27:02 +01:00
committed by GitHub
parent 786ea86e0e
commit 4e7b68a69d
6 changed files with 4 additions and 7 deletions

View File

@@ -248,7 +248,6 @@ const CalendarFetcherUtils = {
if (typeof event.rrule !== "undefined" && event.rrule !== null && !isFacebookBirthday) {
const rule = event.rrule;
let addedEvents = 0;
const pastMoment = moment(past);
const futureMoment = moment(future);
@@ -442,7 +441,6 @@ const CalendarFetcherUtils = {
if (showRecurrence === true) {
Log.debug(`saving event: ${description}`);
addedEvents++;
newEvents.push({
title: recurrenceTitle,
startDate: (adjustDays ? (adjustDays > 0 ? startDate.add(adjustDays, "hours") : startDate.subtract(Math.abs(adjustDays), "hours")) : startDate).format("x"),