Fix ESLint warnings

This change fix all `consistent-return` in ESLint.

Change-Id: I8a5db7205da58f9626ca5e5c060ed2a51d700852
This commit is contained in:
Pierre-Yves Jourel 2022-09-20 13:53:57 +00:00
parent a51d197669
commit 7edf48ec5c
10 changed files with 10 additions and 21 deletions

View File

@ -57,9 +57,7 @@
return list.filter(matchesId).length === 1;
function matchesId(action) {
if (action.id === value) {
return true;
}
return action.id === value;
}
}

View File

@ -56,9 +56,7 @@
return list.filter(matchesId).length === 1;
function matchesId(action) {
if (action.id === value) {
return true;
}
return action.id === value;
}
}

View File

@ -56,9 +56,7 @@
return list.filter(matchesId).length === 1;
function matchesId(action) {
if (action.id === value) {
return true;
}
return action.id === value;
}
}

View File

@ -57,9 +57,7 @@
return list.filter(matchesId).length === 1;
function matchesId(action) {
if (action.id === value) {
return true;
}
return action.id === value;
}
}

View File

@ -147,6 +147,7 @@
if (result.pass.length > 0) {
return deleteModal.open(scope, result.pass.map(getEntity), context).then(deleteResult);
}
return null;
}
function deleteItem(id) {

View File

@ -59,9 +59,7 @@
return list.filter(matchesId).length === 1;
function matchesId(action) {
if (action.id === value) {
return true;
}
return action.id === value;
}
}

View File

@ -364,6 +364,7 @@
if (['ACTIVE', 'ERROR'].indexOf(response.data.provisioning_status) < 0) {
return $q.reject();
}
return null;
});
}
}

View File

@ -57,9 +57,7 @@
return list.filter(matchesId).length === 1;
function matchesId(action) {
if (action.id === value) {
return true;
}
return action.id === value;
}
}

View File

@ -57,9 +57,7 @@
return list.filter(matchesId).length === 1;
function matchesId(action) {
if (action.id === value) {
return true;
}
return action.id === value;
}
}

View File

@ -107,6 +107,7 @@
$rootScope.$broadcast(events.ACTION_DONE);
return args.handle(response);
}
return null;
}
}