diff --git a/.eslintrc b/.eslintrc index 8317547a..8cafd8cf 100644 --- a/.eslintrc +++ b/.eslintrc @@ -52,7 +52,6 @@ // Rules to be processed. "no-use-before-define": 0, - "space-infix-ops": 0, // Stylistic "indent": [2, 4], diff --git a/src/app/util/helper/date_util.js b/src/app/util/helper/date_util.js index 5171ee58..bc0d04cf 100644 --- a/src/app/util/helper/date_util.js +++ b/src/app/util/helper/date_util.js @@ -33,15 +33,13 @@ angular.module('sb.util').factory('DateUtil', * @returns {boolean} True if time ago needs to be used. */ needsTimeAgo: function (targetDate) { - if (targetDate) - { + if (targetDate) { var currentDate = new Date().getTime(); - var daydiff = (currentDate - Date.parse(targetDate))/ - (1000*60*60*24); + var daydiff = (currentDate - Date.parse(targetDate)) / + (1000 * 60 * 60 * 24); return (daydiff < 1); } - else - { + else { return true; } }