Skip to content

Commit dd50651

Browse files
committed
Fix not updating ssh on the first run
1 parent 3b73f10 commit dd50651

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/kotlin/com/coder/gateway/CoderRemoteProvider.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ class CoderRemoteProvider(
113113

114114
// Reconfigure if a new environment is found.
115115
// TODO@JB: Should we use the add/remove listeners instead?
116-
val newEnvironments = lastEnvironments?.let { environments.subtract(it) }
117-
if (newEnvironments?.isNotEmpty() == true) {
116+
val newEnvironments = lastEnvironments
117+
?.let { environments.subtract(it) }
118+
?: environments
119+
if (newEnvironments.isNotEmpty()) {
118120
logger.info("Found new environment(s), reconfiguring CLI: {}", newEnvironments)
119121
cli.configSsh(newEnvironments.map { it.name }.toSet())
120122
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy