mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[APPS-2226] fix linting issue
This commit is contained in:
@@ -22,7 +22,7 @@ export class DateUtil {
|
|||||||
|
|
||||||
static formatDate(dateFormat: string, date: Date = new Date(), days: number | string = 0): string {
|
static formatDate(dateFormat: string, date: Date = new Date(), days: number | string = 0): string {
|
||||||
if (typeof days === 'string') {
|
if (typeof days === 'string') {
|
||||||
days = parseInt(days);
|
days = parseInt(days, 10);
|
||||||
}
|
}
|
||||||
return DateFnsUtils.formatDate(addDays(date, days), dateFormat);
|
return DateFnsUtils.formatDate(addDays(date, days), dateFormat);
|
||||||
}
|
}
|
||||||
@@ -32,4 +32,3 @@ export class DateUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user