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(
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 }
You can’t perform that action at this time.
0 commit comments