Fix linting errors

This commit is contained in:
Dieter Daems
2016-01-03 05:39:47 +01:00
parent bf6f302a8a
commit dba9654a09
2 changed files with 4 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ import moment from 'moment';
export function dayCount([head, tail]) {
return Math.ceil(
moment(moment(head).endOf('day')).diff(
moment(tail).startOf('day'),
'days',
moment(tail).startOf('day'),
'days',
true)
);
}