From 8acf01236e62050c6d6b226eba6b71911bb2dee1 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 5 Jan 2015 13:53:32 -0800 Subject: [PATCH] INFRA-132 - js/angular-crmMailing.js - Cleanup empty checks to satisfy jshint --- js/angular-crmMailing.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/angular-crmMailing.js b/js/angular-crmMailing.js index 239475862c..dfeffb3555 100644 --- a/js/angular-crmMailing.js +++ b/js/angular-crmMailing.js @@ -152,6 +152,7 @@ }); break; case 'unscheduled': + /* falls through */ default: window.location = CRM.url('civicrm/mailing/browse/unscheduled', { reset: 1, @@ -184,13 +185,13 @@ $scope.recipients = null; $scope.getRecipientsEstimate = function () { var ts = $scope.ts; - if ($scope.recipients == null) { + if ($scope.recipients === null) { return ts('(Estimating)'); } - if ($scope.recipients.length == 0) { + if ($scope.recipients.length === 0) { return ts('No recipients'); } - if ($scope.recipients.length == 1) { + if ($scope.recipients.length === 1) { return ts('~1 recipient'); } if (RECIPIENTS_PREVIEW_LIMIT > 0 && $scope.recipients.length >= RECIPIENTS_PREVIEW_LIMIT) { -- 2.25.1