diff --git a/.eslintrc b/.eslintrc index d8b07c2b1b..4ee886d180 100644 --- a/.eslintrc +++ b/.eslintrc @@ -32,7 +32,6 @@ rules: callback-return: 1 guard-for-in: 1 block-scoped-var: 1 - no-redeclare: 1 no-new: 1 ############################################################################# diff --git a/horizon/static/framework/util/filters/filters.js b/horizon/static/framework/util/filters/filters.js index c6b4a514dc..a4a1aeb987 100644 --- a/horizon/static/framework/util/filters/filters.js +++ b/horizon/static/framework/util/filters/filters.js @@ -198,13 +198,14 @@ } return function (input, totalInput) { + var format; var count = ensureNonNegative(input); if (angular.isUndefined(totalInput)) { - var format = ngettext('Displaying %s item', 'Displaying %s items', count); + format = ngettext('Displaying %s item', 'Displaying %s items', count); return interpolate(format, [count]); } else { var total = ensureNonNegative(totalInput); - var format = gettext('Displaying %(count)s of %(total)s items'); + format = gettext('Displaying %(count)s of %(total)s items'); return interpolate(format, {count: count, total: total}, true); } };