remove use of var

This commit is contained in:
2016-05-11 10:58:21 -07:00
parent 4793027ff3
commit a4323433f2
4 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ function Client() {
}
Client.prototype.index = function (params = {}) {
var shardCount = 2;
const shardCount = 2;
return Promise.resolve({
_index: params.index || 'index',
_type: params.type || 'type',
@@ -83,7 +83,7 @@ Client.prototype.search = function (params = {}, count = 5, source = {}) {
};
Client.prototype.update = function (params = {}) {
var shardCount = 2;
const shardCount = 2;
return Promise.resolve({
_index: params.index || 'index',
_type: params.type || 'type',