Skip to content

Commit a4a45f6

Browse files
committed
Remove useless call on not-null type
1 parent e0fab54 commit a4a45f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import java.nio.file.StandardCopyOption
1111
class CoderCLIDownloader(private val buildVersion: String) {
1212

1313
fun downloadCLI(url: URL, outputName: String, ext: String): Path {
14-
val filename = if (ext.isNullOrBlank()) "${outputName}-$buildVersion" else "${outputName}-${buildVersion}.${ext}"
14+
val filename = if (ext.isBlank()) "${outputName}-$buildVersion" else "${outputName}-${buildVersion}.${ext}"
1515
val cliPath = Paths.get(System.getProperty("java.io.tmpdir"), filename)
1616
if (Files.exists(cliPath)) {
1717
logger.info("${cliPath.toAbsolutePath()} already exists, skipping download")

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class CoderLocateRemoteProjectStepView : CoderWorkspacesWizardStep, Disposable {
124124
.flatMap { CachingProductsJsonWrapper.getAvailableIdes(it, workspaceOS) }
125125
.map { ide -> IdeWithStatus(ide.product, ide.buildNumber, IdeStatus.DOWNLOAD, ide.downloadLink, ide.presentableVersion) }
126126

127-
if (idesWithStatus.isNullOrEmpty()) {
127+
if (idesWithStatus.isEmpty()) {
128128
logger.warn("Could not resolve any IDE for workspace ${selectedWorkspace.name}, probably $workspaceOS is not supported by Gateway")
129129
} else {
130130
cbIDE.remove(spinner)

0 commit comments

Comments
 (0)