Исправлены ошибки линтера

This commit is contained in:
Pavel Gnedov 2023-11-07 02:39:27 +07:00
parent d43cc54f56
commit 387a1b28c3

View file

@ -35,7 +35,9 @@ export function parse(str: string, params?: Moo.Rules): Moo.Token[] {
} }
return res; return res;
} catch (ex) { } catch (ex) {
logger.error(`Error at parse str=${str} with params=${params}, error message - ${ex}`); logger.error(
`Error at parse str=${str} with params=${params}, error message - ${ex}`,
);
return []; return [];
} }
} }
@ -140,7 +142,7 @@ export function parseToCalendarEvent(
to = date1.set({ to = date1.set({
hour: time2.hours, hour: time2.hours,
minute: time2.minutes, minute: time2.minutes,
second: time2.seconds second: time2.seconds,
}); });
} else { } else {
to = from.plus(Luxon.Duration.fromMillis(DEFAULT_EVENT_DURATION)); to = from.plus(Luxon.Duration.fromMillis(DEFAULT_EVENT_DURATION));