File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/com/coder/toolbox/cli Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ class CoderCLIManager(
467
467
*/
468
468
private fun writeSSHConfig (contents : String? ) {
469
469
if (contents != null ) {
470
- if (! context.settingsStore.sshConfigPath.isNullOrBlank ()) {
470
+ if (context.settingsStore.sshConfigPath.isNotBlank ()) {
471
471
val sshConfPath = Path .of(context.settingsStore.sshConfigPath)
472
472
sshConfPath.parent.toFile().mkdirs()
473
473
sshConfPath.toFile().writeText(contents)
@@ -492,9 +492,9 @@ class CoderCLIManager(
492
492
throw MissingVersionException (" No version found in output" )
493
493
}
494
494
return SemVer .parse(json.version)
495
- } catch (exception : JsonDataException ) {
495
+ } catch (_ : JsonDataException ) {
496
496
throw MissingVersionException (" No version found in output" )
497
- } catch (exception : EOFException ) {
497
+ } catch (_ : EOFException ) {
498
498
throw MissingVersionException (" No version found in output" )
499
499
}
500
500
}
@@ -532,7 +532,7 @@ class CoderCLIManager(
532
532
val buildVersion =
533
533
try {
534
534
SemVer .parse(rawBuildVersion)
535
- } catch (e : InvalidVersionException ) {
535
+ } catch (_ : InvalidVersionException ) {
536
536
context.logger.info(" Got invalid build version: $rawBuildVersion " )
537
537
return null
538
538
}
You can’t perform that action at this time.
0 commit comments