Function
validateCommands
(commands: readonly string[])
Source from the content-addressed store, hash-verified
| 723 | } |
| 724 | |
| 725 | function validateCommands(commands: readonly string[]): void { |
| 726 | for (let i = 0; i < commands.length; i++) { |
| 727 | const cmd = commands[i]; |
| 728 | if (cmd == null) { |
| 729 | throw new RuntimeError( |
| 730 | RuntimeErrorCode.NULLISH_COMMAND, |
| 731 | (typeof ngDevMode === 'undefined' || ngDevMode) && |
| 732 | `The requested path contains ${cmd} segment at index ${i}`, |
| 733 | ); |
| 734 | } |
| 735 | } |
| 736 | } |
Tested by
no test coverage detected