Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5f46308

Browse files
committedApr 24, 2024
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)
Please sign in to comment.