Merge "No more no-extra-parens eslint errors"
This commit is contained in:
commit
02043a98cb
@ -133,7 +133,7 @@
|
||||
function noValueFilter() {
|
||||
return function (input, def) {
|
||||
if (input === null || angular.isUndefined(input) ||
|
||||
(angular.isString(input) && '' === input.trim())) {
|
||||
angular.isString(input) && '' === input.trim()) {
|
||||
return def || gettext('-');
|
||||
} else {
|
||||
return input;
|
||||
@ -208,9 +208,9 @@
|
||||
function itemCountFilter() {
|
||||
|
||||
function ensureNonNegative(input) {
|
||||
var isNumeric = (input !== null && isFinite(input));
|
||||
var isNumeric = input !== null && isFinite(input);
|
||||
var number = isNumeric ? Math.round(input) : 0;
|
||||
return (number > 0) ? number : 0;
|
||||
return number > 0 ? number : 0;
|
||||
}
|
||||
|
||||
return function (input, totalInput) {
|
||||
|
@ -70,7 +70,7 @@
|
||||
// helper function to check that password matches
|
||||
function passwordCheck() {
|
||||
scope.$apply(function () {
|
||||
var match = (ctrl.$modelValue === pwElement.val());
|
||||
var match = ctrl.$modelValue === pwElement.val();
|
||||
ctrl.$setValidity('match', match);
|
||||
});
|
||||
}
|
||||
|
@ -106,9 +106,9 @@
|
||||
cancel: gettext('Cancel'),
|
||||
prompt: gettext('Click here for filters.'),
|
||||
remove: gettext('Remove'),
|
||||
text: (scope.clientFullTextSearch
|
||||
text: scope.clientFullTextSearch
|
||||
? gettext('Search in current results')
|
||||
: gettext('Full Text Search'))
|
||||
: gettext('Full Text Search')
|
||||
};
|
||||
scope.filterStrings = filterStrings || defaultFilterStrings;
|
||||
|
||||
|
@ -190,7 +190,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
viewModel.ready = (stepReadyPromises.length === 0);
|
||||
viewModel.ready = stepReadyPromises.length === 0;
|
||||
return $q.all(stepReadyPromises);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user