Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Aug 17, 2023
1 parent 3f8cc90 commit 65fc067
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ export const deleteListIndexRoute = (router: ListsPluginRouter): void => {
const listDataStreamExists = await lists.getListDataStreamExists();
const listItemDataStreamExists = await lists.getListItemDataStreamExists();


// return early if no data stream or indices exist
if (!listDataStreamExists && !listItemDataStreamExists && !listIndexExists && !listItemIndexExists) {
if (
!listDataStreamExists &&
!listItemDataStreamExists &&
!listIndexExists &&
!listItemIndexExists
) {
return siemResponse.error({
body: `index and data stream: "${lists.getListName()}" and "${lists.getListItemName()}" does not exist`,
statusCode: 404,
Expand Down

0 comments on commit 65fc067

Please sign in to comment.