(source, env = process.env)
| 55 | } |
| 56 | |
| 57 | function assertSourceServerEnabled(source, env = process.env) { |
| 58 | if (!isSourceServerEnabled(source, env)) { |
| 59 | throw new SourceDisabledError(source); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function isSourceDisabledError(error) { |
| 64 | return error?.code === SOURCE_DISABLED_ERROR_CODE; |
no test coverage detected