mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ftr/verbose_instance] check for .finally()
before using it (#88998)
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
f6689729ea
commit
cacce7a866
1 changed files with 5 additions and 1 deletions
|
@ -65,7 +65,11 @@ export function createVerboseInstance(
|
|||
}
|
||||
|
||||
const { returned } = result;
|
||||
if (returned && typeof returned.then === 'function') {
|
||||
if (
|
||||
returned &&
|
||||
typeof returned.then === 'function' &&
|
||||
typeof returned.finally === 'function'
|
||||
) {
|
||||
return returned.finally(() => {
|
||||
log.indent(-2);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue