Skip to content

Commit f01d9f6

Browse files
committed
chore: fix more linting issues
1 parent 75385a1 commit f01d9f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/com/coder/toolbox/cli/CoderCLIManager.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ class CoderCLIManager(
467467
*/
468468
private fun writeSSHConfig(contents: String?) {
469469
if (contents != null) {
470-
if (!context.settingsStore.sshConfigPath.isNullOrBlank()) {
470+
if (context.settingsStore.sshConfigPath.isNotBlank()) {
471471
val sshConfPath = Path.of(context.settingsStore.sshConfigPath)
472472
sshConfPath.parent.toFile().mkdirs()
473473
sshConfPath.toFile().writeText(contents)
@@ -492,9 +492,9 @@ class CoderCLIManager(
492492
throw MissingVersionException("No version found in output")
493493
}
494494
return SemVer.parse(json.version)
495-
} catch (exception: JsonDataException) {
495+
} catch (_: JsonDataException) {
496496
throw MissingVersionException("No version found in output")
497-
} catch (exception: EOFException) {
497+
} catch (_: EOFException) {
498498
throw MissingVersionException("No version found in output")
499499
}
500500
}
@@ -532,7 +532,7 @@ class CoderCLIManager(
532532
val buildVersion =
533533
try {
534534
SemVer.parse(rawBuildVersion)
535-
} catch (e: InvalidVersionException) {
535+
} catch (_: InvalidVersionException) {
536536
context.logger.info("Got invalid build version: $rawBuildVersion")
537537
return null
538538
}

0 commit comments

Comments
 (0)