diff --git a/docs/development/core/development-elasticsearch.asciidoc b/docs/development/core/development-elasticsearch.asciidoc index 36e85d04f5809..751a507753b91 100644 --- a/docs/development/core/development-elasticsearch.asciidoc +++ b/docs/development/core/development-elasticsearch.asciidoc @@ -31,9 +31,8 @@ Browser clients are exposed through AngularJS services. [source,javascript] ---- uiModules.get('kibana') -.run(function (esAdmin, es) { +.run(function (es) { es.ping() - .then(() => esAdmin.ping()) .catch(err => { console.log('error pinging servers'); });