Enabled eslint:space-infix-ops

Rule enabled, discovered issues resolved.

Change-Id: Ia0d62a4ca093fdec2f7e5e8f1a10ce2e2430baf1
This commit is contained in:
Michael Krotscheck 2015-03-04 16:09:58 -08:00
parent 61922d78cd
commit df89d505b4
2 changed files with 4 additions and 7 deletions

View File

@ -52,7 +52,6 @@
// Rules to be processed.
"no-use-before-define": 0,
"space-infix-ops": 0,
// Stylistic
"indent": [2, 4],

View File

@ -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;
}
}