( flags: CliFlags, previous: RemoteConnectionState | null, )
| 254 | } |
| 255 | |
| 256 | function shouldReusePreviousConnectionState( |
| 257 | flags: CliFlags, |
| 258 | previous: RemoteConnectionState | null, |
| 259 | ): previous is RemoteConnectionState { |
| 260 | return Boolean(previous && !flags.force); |
| 261 | } |
| 262 | |
| 263 | async function cleanupForcedPreviousConnection( |
| 264 | client: Parameters<ClientCommandHandler>[0]['client'], |
no outgoing calls
no test coverage detected