Fix ESLint warnings
This change fix all `consistent-return` in ESLint. Change-Id: I8a5db7205da58f9626ca5e5c060ed2a51d700852
This commit is contained in:
parent
a51d197669
commit
7edf48ec5c
|
@ -57,9 +57,7 @@
|
||||||
return list.filter(matchesId).length === 1;
|
return list.filter(matchesId).length === 1;
|
||||||
|
|
||||||
function matchesId(action) {
|
function matchesId(action) {
|
||||||
if (action.id === value) {
|
return action.id === value;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,9 +56,7 @@
|
||||||
return list.filter(matchesId).length === 1;
|
return list.filter(matchesId).length === 1;
|
||||||
|
|
||||||
function matchesId(action) {
|
function matchesId(action) {
|
||||||
if (action.id === value) {
|
return action.id === value;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,9 +56,7 @@
|
||||||
return list.filter(matchesId).length === 1;
|
return list.filter(matchesId).length === 1;
|
||||||
|
|
||||||
function matchesId(action) {
|
function matchesId(action) {
|
||||||
if (action.id === value) {
|
return action.id === value;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,9 +57,7 @@
|
||||||
return list.filter(matchesId).length === 1;
|
return list.filter(matchesId).length === 1;
|
||||||
|
|
||||||
function matchesId(action) {
|
function matchesId(action) {
|
||||||
if (action.id === value) {
|
return action.id === value;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -147,6 +147,7 @@
|
||||||
if (result.pass.length > 0) {
|
if (result.pass.length > 0) {
|
||||||
return deleteModal.open(scope, result.pass.map(getEntity), context).then(deleteResult);
|
return deleteModal.open(scope, result.pass.map(getEntity), context).then(deleteResult);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteItem(id) {
|
function deleteItem(id) {
|
||||||
|
|
|
@ -59,9 +59,7 @@
|
||||||
return list.filter(matchesId).length === 1;
|
return list.filter(matchesId).length === 1;
|
||||||
|
|
||||||
function matchesId(action) {
|
function matchesId(action) {
|
||||||
if (action.id === value) {
|
return action.id === value;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -364,6 +364,7 @@
|
||||||
if (['ACTIVE', 'ERROR'].indexOf(response.data.provisioning_status) < 0) {
|
if (['ACTIVE', 'ERROR'].indexOf(response.data.provisioning_status) < 0) {
|
||||||
return $q.reject();
|
return $q.reject();
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,9 +57,7 @@
|
||||||
return list.filter(matchesId).length === 1;
|
return list.filter(matchesId).length === 1;
|
||||||
|
|
||||||
function matchesId(action) {
|
function matchesId(action) {
|
||||||
if (action.id === value) {
|
return action.id === value;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,9 +57,7 @@
|
||||||
return list.filter(matchesId).length === 1;
|
return list.filter(matchesId).length === 1;
|
||||||
|
|
||||||
function matchesId(action) {
|
function matchesId(action) {
|
||||||
if (action.id === value) {
|
return action.id === value;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,6 +107,7 @@
|
||||||
$rootScope.$broadcast(events.ACTION_DONE);
|
$rootScope.$broadcast(events.ACTION_DONE);
|
||||||
return args.handle(response);
|
return args.handle(response);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue