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

Commit 5f46308

Browse files
Use Kotlin forEach and remove useless braces
1 parent 1cadf00 commit 5f46308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
333333
deployment.items = items
334334
deployment.error = null
335335
// Delete connections that have no workspace.
336-
workspaces.forEach { name, connections ->
336+
workspaces.forEach { (name, connections) ->
337337
if (items.firstOrNull { it.workspace.name == name } == null) {
338-
logger.info("Removing recent connections for deleted workspace ${name} (found ${connections.size})")
338+
logger.info("Removing recent connections for deleted workspace $name (found ${connections.size})")
339339
connections.forEach { recentConnectionsService.removeConnection(it.toRecentWorkspaceConnection()) }
340340
}
341341
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /