(collectionId: number, envName?: string)
| 143 | } |
| 144 | |
| 145 | function getEnv(collectionId: number, envName?: string) { |
| 146 | if (!envName) return; |
| 147 | |
| 148 | const c = findCollection(collections, collectionId); |
| 149 | if (!c) return; |
| 150 | |
| 151 | const envs = c.data?.envs; |
| 152 | if (!envs) return; |
| 153 | |
| 154 | return envs[envName]; |
| 155 | } |
| 156 | |
| 157 | async function handleConnect() { |
| 158 | try { |
nothing calls this directly
no test coverage detected