Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Apr 24, 2020
1 parent 37221f1 commit 2504281
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/core/public/saved_objects/saved_objects_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,3 @@ const renameKeys = <T extends Record<string, any>, U extends Record<string, any>
...{ [keysMap[key] || key]: obj[key] },
};
}, {});

const isAutoCreateIndexError = (error: any) => {
return (
error?.res?.status === 503 && error?.body?.attributes?.code === 'ES_AUTO_CREATE_INDEX_ERROR'
);
};

0 comments on commit 2504281

Please sign in to comment.