Skip to content

Commit eb1e60a

Browse files
committed
Remove property declaration in constructor if is never used
1 parent f5fb90a commit eb1e60a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/kotlin/com/coder/gateway/sdk/CoderCLIManager.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.intellij.openapi.diagnostic.Logger
44
import java.net.URL
55
import java.nio.file.Path
66

7-
class CoderCLIManager(private val url: URL, private val buildVersion: String) {
7+
class CoderCLIManager(private val url: URL, buildVersion: String) {
88
private val coderCLIDownloader = CoderCLIDownloader(buildVersion)
99

1010
fun download(): Path? {

src/main/kotlin/com/coder/gateway/sdk/ex/AuthenticationException.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package com.coder.gateway.sdk.ex
22

33
import java.io.IOException
44

5-
class AuthenticationException(val reason: String) : IOException(reason)
5+
class AuthenticationException(reason: String) : IOException(reason)

src/main/kotlin/com/coder/gateway/views/CoderGatewayConnectionComponent.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.intellij.util.ui.components.BorderLayoutPanel
77
import com.jetbrains.rd.util.lifetime.Lifetime
88
import com.jetbrains.rd.util.lifetime.onTermination
99

10-
class CoderGatewayConnectionComponent(val lifetime: Lifetime, val url: String) : BorderLayoutPanel() {
10+
class CoderGatewayConnectionComponent(lifetime: Lifetime, val url: String) : BorderLayoutPanel() {
1111
private val disposable = Disposer.newDisposable()
1212
private val mainPanel = BorderLayoutPanel().apply {
1313
add(JBLabel(CoderIcons.LOGO_52), "Center")

0 commit comments

Comments
 (0)