Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf34464e

Browse files
committed
Replace Path.readText with File.readText
The former results in an error now. Not sure what changed, buteverywhere else already uses File.readText.
1 parent6a904d4 commitf34464e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/main/kotlin/com/coder/gateway/views/CoderGatewayRecentWorkspaceConnectionsView.kt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
252252
.mapNotNull { it.configDirectory }.toSet()
253253
.associateWith { dir->
254254
deployments[dir]?:try {
255-
val url=Path.of(dir).resolve("url").readText()
256-
val token=Path.of(dir).resolve("session").readText()
257-
DeploymentInfo(CoderRestClient(url.toURL(), token,null, settings))
255+
val url=Path.of(dir).resolve("url").toFile().readText()
256+
val token=Path.of(dir).resolve("session").toFile().readText()
257+
DeploymentInfo(CoderRestClient(url.toURL(), token,null, settings))
258258
}catch (e:Exception) {
259259
logger.error("Unable to create client from$dir", e)
260260
DeploymentInfo(error="Error trying to read$dir:${e.message}")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp