This repository was archived by the owner on Nov 18, 2025. It is now read-only.
Commit 1978197
authored
fix: do not throw error on empty LRO response (#1087)
Inspired by https://github.com/googleapis/nodejs-contact-center-insights/pull/34/files#r690783654. Some APIs end LRO without setting either result or error (but set `done: true`), that condition was previously considered an error but looks like it's OK to just return an empty response object in this case.1 parent 6892cdd commit 1978197
2 files changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
315 | 317 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 318 | + | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
498 | 497 | | |
499 | | - | |
| 498 | + | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| |||
0 commit comments