Skip to content

Commit

Permalink
Remove useless use of await.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed May 18, 2020
1 parent d6b4c49 commit 9ff1e60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const installPreBuiltTemplates = async (
// The existing convenience endpoint `indices.putTemplate` only sends to _template,
// which does not support v2 templates.
// See src/core/server/elasticsearch/api_types.ts for available endpoints.
return await callCluster('transport.request', callClusterParams);
return callCluster('transport.request', callClusterParams);
});
try {
return await Promise.all(templateInstallPromises);
Expand Down Expand Up @@ -123,7 +123,7 @@ const installPreBuiltComponentTemplates = async (
// This uses the catch-all endpoint 'transport.request' because there is no
// convenience endpoint for component templates yet.
// See src/core/server/elasticsearch/api_types.ts for available endpoints.
return await callCluster('transport.request', callClusterParams);
return callCluster('transport.request', callClusterParams);
});
try {
return await Promise.all(templateInstallPromises);
Expand Down

0 comments on commit 9ff1e60

Please sign in to comment.