File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/kotlin/com/coder/gateway/cli Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,6 @@ class CoderCLIManager(
257
257
val host = deploymentURL.safeHost()
258
258
val startBlock = " # --- START CODER JETBRAINS $host "
259
259
val endBlock = " # --- END CODER JETBRAINS $host "
260
- val isRemoving = workspaceNames.isEmpty()
261
260
val baseArgs =
262
261
listOfNotNull(
263
262
escape(localBinaryPath.toString()),
@@ -346,6 +345,8 @@ class CoderCLIManager(
346
345
val start = " (\\ s*)$startBlock " .toRegex().find(contents)
347
346
val end = " $endBlock (\\ s*)" .toRegex().find(contents)
348
347
348
+ val isRemoving = blockContent.isEmpty()
349
+
349
350
if (start == null && end == null && isRemoving) {
350
351
logger.info(" No workspaces and no existing config blocks to remove" )
351
352
return null
You can’t perform that action at this time.
0 commit comments