Enable eqeqeq
This enables the eqeqeq linting rule from eslint-config-openstack, and corrects any errors found. http://eslint.org/docs/rules/eqeqeq Change-Id: Iad857ae3f9963c7cb93c494d351c3908d87cd4a0
This commit is contained in:
parent
7d70958e8b
commit
06f1547add
@ -30,7 +30,6 @@ rules:
|
|||||||
brace-style: 1
|
brace-style: 1
|
||||||
strict: 1
|
strict: 1
|
||||||
no-extra-parens: 1
|
no-extra-parens: 1
|
||||||
eqeqeq: 1
|
|
||||||
consistent-return: 1
|
consistent-return: 1
|
||||||
callback-return: 1
|
callback-return: 1
|
||||||
guard-for-in: 1
|
guard-for-in: 1
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
function noValueFilter() {
|
function noValueFilter() {
|
||||||
return function (input) {
|
return function (input) {
|
||||||
if (input === null || angular.isUndefined(input) ||
|
if (input === null || angular.isUndefined(input) ||
|
||||||
(angular.isString(input) && '' == input.trim())) {
|
(angular.isString(input) && '' === input.trim())) {
|
||||||
return gettext('-');
|
return gettext('-');
|
||||||
} else {
|
} else {
|
||||||
return input;
|
return input;
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
angular.forEach(facets, function(facet) {
|
angular.forEach(facets, function(facet) {
|
||||||
var facetParts = facet.split('=');
|
var facetParts = facet.split('=');
|
||||||
angular.forEach($scope.facetsObj, function (value) {
|
angular.forEach($scope.facetsObj, function (value) {
|
||||||
if (value.name == facetParts[0]) {
|
if (value.name === facetParts[0]) {
|
||||||
if (angular.isUndefined(value.options)) {
|
if (angular.isUndefined(value.options)) {
|
||||||
$scope.currentSearch.push({
|
$scope.currentSearch.push({
|
||||||
'name': facet,
|
'name': facet,
|
||||||
@ -154,7 +154,7 @@
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
angular.forEach(value.options, function (option) {
|
angular.forEach(value.options, function (option) {
|
||||||
if (option.key == facetParts[1]) {
|
if (option.key === facetParts[1]) {
|
||||||
$scope.currentSearch.push({
|
$scope.currentSearch.push({
|
||||||
'name': facet,
|
'name': facet,
|
||||||
'label': [value.label, option.label]
|
'label': [value.label, option.label]
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
if (scope.filterFacets) {
|
if (scope.filterFacets) {
|
||||||
var isServerFacet = scope.filterFacets.some(function checkIsServer(facet) {
|
var isServerFacet = scope.filterFacets.some(function checkIsServer(facet) {
|
||||||
return facet.name == predString && facet.isServer;
|
return facet.name === predString && facet.isServer;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isServerFacet) {
|
if (isServerFacet) {
|
||||||
|
Loading…
Reference in New Issue
Block a user