Исправлены ошибки линтера
This commit is contained in:
parent
d43cc54f56
commit
387a1b28c3
1 changed files with 4 additions and 2 deletions
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue