(update: any)
| 995 | } |
| 996 | |
| 997 | function extractExitCode(update: any): number | null { |
| 998 | const direct = update?.exitCode; |
| 999 | if (typeof direct === 'number') return direct; |
| 1000 | |
| 1001 | const nested = getPathValue(update, 'result.exitCode'); |
| 1002 | if (typeof nested === 'number') return nested; |
| 1003 | |
| 1004 | return null; |
| 1005 | } |
| 1006 | |
| 1007 | function extractErrorText(update: any): string | null { |
| 1008 | const direct = update?.error; |
no test coverage detected