Skip to content

Commit e40ac48

Browse files
committed
lint
1 parent 7aa563b commit e40ac48

File tree

1 file changed

+4
-10
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project

1 file changed

+4
-10
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project/ProjectContextProvider.kt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import kotlinx.coroutines.delay
2121
import kotlinx.coroutines.launch
2222
import kotlinx.coroutines.runBlocking
2323
import kotlinx.coroutines.withTimeout
24-
import kotlinx.coroutines.yield
2524
import software.aws.toolkits.core.utils.debug
2625
import software.aws.toolkits.core.utils.error
2726
import software.aws.toolkits.core.utils.getLogger
@@ -48,15 +47,10 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
4847
return@launch
4948
}
5049

51-
while (true) {
52-
if (encoderServer.isNodeProcessRunning()) {
53-
// TODO: need better solution for this
54-
delay(10000)
55-
initAndIndex()
56-
break
57-
} else {
58-
break
59-
}
50+
while (!encoderServer.isNodeProcessRunning()) {
51+
// TODO: need better solution for this
52+
delay(10000)
53+
initAndIndex()
6054
}
6155
}
6256
}

0 commit comments

Comments
 (0)