Skip to content

Commit cc260fa

Browse files
committed
Selected KT Lint changes.
1 parent 5ba242c commit cc260fa

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/main/kotlin/com/coder/gateway/CoderSettingsConfigurable.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,11 @@ class CoderSettingsConfigurable : BoundConfigurable("Coder") {
151151
}.layout(RowLayout.PARENT_GRID)
152152
row(CoderGatewayBundle.message("gateway.connector.settings.default-ide")) {
153153
textField().resizableColumn().align(AlignX.FILL)
154-
.bindText(state::defaultIde)
155-
.comment("The default IDE version to display in the IDE selection dropdown. " +
156-
"Example format: CL 2023.3.6 233.15619.8")
154+
.bindText(state::defaultIde)
155+
.comment(
156+
"The default IDE version to display in the IDE selection dropdown. " +
157+
"Example format: CL 2023.3.6 233.15619.8",
158+
)
157159
}
158160
}
159161
}

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspaceProjectIDEStepView.kt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ import com.jetbrains.gateway.ssh.IdeWithStatus
5656
import com.jetbrains.gateway.ssh.IntelliJPlatformProduct
5757
import com.jetbrains.gateway.ssh.deploy.DeployException
5858
import com.jetbrains.gateway.ssh.util.validateRemotePath
59-
import com.jetbrains.rd.generator.nova.PredefinedType
6059
import kotlinx.coroutines.CoroutineScope
6160
import kotlinx.coroutines.Dispatchers
6261
import kotlinx.coroutines.Job
@@ -83,11 +82,9 @@ import javax.swing.SwingConstants
8382
import javax.swing.event.DocumentEvent
8483

8584
// Just extracting the way we display the IDE info into a helper function.
86-
private fun displayIdeWithStatus(ideWithStatus: IdeWithStatus): String {
87-
return "${ideWithStatus.product.productCode} ${ideWithStatus.presentableVersion} ${ideWithStatus.buildNumber} | ${ideWithStatus.status.name.lowercase(
88-
Locale.getDefault(),
89-
)}"
90-
}
85+
private fun displayIdeWithStatus(ideWithStatus: IdeWithStatus): String = "${ideWithStatus.product.productCode} ${ideWithStatus.presentableVersion} ${ideWithStatus.buildNumber} | ${ideWithStatus.status.name.lowercase(
86+
Locale.getDefault(),
87+
)}"
9188

9289
/**
9390
* View for a single workspace. In particular, show available IDEs and a button
@@ -483,9 +480,10 @@ class CoderWorkspaceProjectIDEStepView(
483480
layout = FlowLayout(FlowLayout.LEFT)
484481
add(JLabel(ideWithStatus.product.ideName, ideWithStatus.product.icon, SwingConstants.LEFT))
485482
add(
486-
JLabel(displayIdeWithStatus(
487-
ideWithStatus
488-
),
483+
JLabel(
484+
displayIdeWithStatus(
485+
ideWithStatus,
486+
),
489487
).apply {
490488
foreground = UIUtil.getLabelDisabledForeground()
491489
},

0 commit comments

Comments
 (0)