Merge pull request #5798 from DDaems/Fix/lint-errors
Fix linting errors
This commit is contained in:
@ -15,7 +15,8 @@ window.common = (function(global) {
|
|||||||
window.__err = new Error(
|
window.__err = new Error(
|
||||||
'Potential infinite loop at line ' +
|
'Potential infinite loop at line ' +
|
||||||
line +
|
line +
|
||||||
'. To disable loop protection, write: \\n\\/\\/ noprotect\\nas the first' +
|
'. To disable loop protection, write:' +
|
||||||
|
' \\n\\/\\/ noprotect\\nas the first' +
|
||||||
' line. Beware that if you do have an infinite loop in your code' +
|
' line. Beware that if you do have an infinite loop in your code' +
|
||||||
' this will crash your browser.'
|
' this will crash your browser.'
|
||||||
);
|
);
|
||||||
|
@ -4,8 +4,8 @@ import moment from 'moment';
|
|||||||
export function dayCount([head, tail]) {
|
export function dayCount([head, tail]) {
|
||||||
return Math.ceil(
|
return Math.ceil(
|
||||||
moment(moment(head).endOf('day')).diff(
|
moment(moment(head).endOf('day')).diff(
|
||||||
moment(tail).startOf('day'),
|
moment(tail).startOf('day'),
|
||||||
'days',
|
'days',
|
||||||
true)
|
true)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user