We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b73f10 commit dd50651Copy full SHA for dd50651
src/main/kotlin/com/coder/gateway/CoderRemoteProvider.kt
@@ -113,8 +113,10 @@ class CoderRemoteProvider(
113
114
// Reconfigure if a new environment is found.
115
// TODO@JB: Should we use the add/remove listeners instead?
116
- val newEnvironments = lastEnvironments?.let { environments.subtract(it) }
117
- if (newEnvironments?.isNotEmpty() == true) {
+ val newEnvironments = lastEnvironments
+ ?.let { environments.subtract(it) }
118
+ ?: environments
119
+ if (newEnvironments.isNotEmpty()) {
120
logger.info("Found new environment(s), reconfiguring CLI: {}", newEnvironments)
121
cli.configSsh(newEnvironments.map { it.name }.toSet())
122
}
0 commit comments