From dba9654a0928ee011b8f7114f29f98a4c90a6e35 Mon Sep 17 00:00:00 2001 From: Dieter Daems Date: Sun, 3 Jan 2016 05:39:47 +0100 Subject: [PATCH] Fix linting errors --- client/commonFramework/update-preview.js | 3 ++- server/utils/date-utils.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/commonFramework/update-preview.js b/client/commonFramework/update-preview.js index 138a9f2fd3..14c6ef7329 100644 --- a/client/commonFramework/update-preview.js +++ b/client/commonFramework/update-preview.js @@ -15,7 +15,8 @@ window.common = (function(global) { window.__err = new Error( 'Potential infinite loop at 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' + ' this will crash your browser.' ); diff --git a/server/utils/date-utils.js b/server/utils/date-utils.js index a1b5156ac5..870f094977 100644 --- a/server/utils/date-utils.js +++ b/server/utils/date-utils.js @@ -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) ); }