From 73581ee04c07cf474b8e0d91dc512dae41e1117b Mon Sep 17 00:00:00 2001 From: Razz4780 Date: Wed, 29 Jan 2025 13:33:16 +0100 Subject: [PATCH] Format --- .../src/main/kotlin/com/metalbear/mirrord/MirrordApi.kt | 9 ++++----- .../kotlin/com/metalbear/mirrord/MirrordExecDialog.kt | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordApi.kt b/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordApi.kt index bda5d19c..43319294 100644 --- a/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordApi.kt +++ b/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordApi.kt @@ -160,7 +160,7 @@ class MirrordApi(private val service: MirrordProjectService, private val project private data class RichOutput( val targets: Array, @SerializedName("current_namespace") val currentNamespace: String, - val namespaces: Array, + val namespaces: Array ) { override fun equals(other: Any?): Boolean { if (this === other) return true @@ -185,7 +185,6 @@ class MirrordApi(private val service: MirrordProjectService, private val project class MirrordLsOutput(val targets: List, val currentNamespace: String?, val namespaces: List?) - private class MirrordLsTask(cli: String, projectEnvVars: Map?) : MirrordCliTask(cli, "ls", null, projectEnvVars) { override fun compute(project: Project, process: Process, setText: (String) -> Unit): MirrordLsOutput { setText("mirrord is listing targets...") @@ -208,7 +207,7 @@ class MirrordApi(private val service: MirrordProjectService, private val project MirrordLsOutput( simpleOutput.map { FoundTarget(it, true) }, null, - null, + null ) } else { throw error @@ -221,8 +220,8 @@ class MirrordApi(private val service: MirrordProjectService, private val project .notifier .notifySimple( "No mirrord target available in the configured namespace. " + - "You can run targetless, or set a different target namespace " + - "or kubeconfig in the mirrord configuration file.", + "You can run targetless, or set a different target namespace " + + "or kubeconfig in the mirrord configuration file.", NotificationType.INFORMATION ) } diff --git a/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordExecDialog.kt b/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordExecDialog.kt index 688e3a0b..5482fe9a 100644 --- a/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordExecDialog.kt +++ b/modules/core/src/main/kotlin/com/metalbear/mirrord/MirrordExecDialog.kt @@ -172,8 +172,8 @@ class MirrordExecDialog(private val project: Project, private val getTargets: (S .map { it.path } .filter { (showPods.isSelected && it.startsWith("pod/")) || - (showDeployments.isSelected && it.startsWith("deployment/")) || - (showRollouts.isSelected && it.startsWith("rollout/")) + (showDeployments.isSelected && it.startsWith("deployment/")) || + (showRollouts.isSelected && it.startsWith("rollout/")) } .filter { targetFilter.text == TARGET_FILTER_PLACEHOLDER || it.contains(targetFilter.text) } .toMutableList()