Improve child performances (#1314)
This commit is contained in:
committed by
GitHub
parent
19f570f067
commit
a064f0f357
@ -60,7 +60,7 @@ function build (opts = {}) {
|
||||
await client.indices.deleteAlias({
|
||||
index: '_all',
|
||||
name: '_all'
|
||||
}, { ignore: 404 })
|
||||
}, { ignore: [404] })
|
||||
} catch (err) {
|
||||
assert.ifError(err, 'should not error: indices.deleteAlias')
|
||||
}
|
||||
@ -69,7 +69,7 @@ function build (opts = {}) {
|
||||
await client.indices.delete({
|
||||
index: '_all',
|
||||
expand_wildcards: 'open,closed,hidden'
|
||||
}, { ignore: 404 })
|
||||
}, { ignore: [404] })
|
||||
} catch (err) {
|
||||
assert.ifError(err, 'should not error: indices.delete')
|
||||
}
|
||||
@ -392,6 +392,7 @@ function build (opts = {}) {
|
||||
}
|
||||
|
||||
const options = { ignore: cmd.params.ignore, headers: action.headers }
|
||||
if (!Array.isArray(options.ignore)) options.ignore = [options.ignore]
|
||||
if (cmd.params.ignore) delete cmd.params.ignore
|
||||
|
||||
const [err, result] = await to(api(cmd.params, options))
|
||||
|
||||
Reference in New Issue
Block a user