Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed May 27, 2020
1 parent 78be364 commit bf64f00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export const registerDeleteRoute = ({ router, license }: RouteDependencies): voi
};

await Promise.all(
componentNames.map(componentName => {
componentNames.map((componentName) => {
return callAsCurrentUser('dataManagement.deleteComponentTemplate', {
name: componentName,
})
.then(() => response.itemsDeleted.push(componentName))
.catch(e =>
.catch((e) =>
response.errors.push({
name: componentName,
error: e,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export const initElasticsearchHelpers = (es) => {

const catTemplate = (name) => es.cat.templates({ name, format: 'json' });

const createComponentTemplate = componentTemplate => {
const createComponentTemplate = (componentTemplate) => {
return es.dataManagement.saveComponentTemplate(componentTemplate);
};

const deleteComponentTemplate = componentTemplateName => {
const deleteComponentTemplate = (componentTemplateName) => {
return es.dataManagement.deleteComponentTemplate({ name: componentTemplateName });
};

Expand Down

0 comments on commit bf64f00

Please sign in to comment.