From 1b75bb4fdc5137474a62936b93f0567ce54cdfb5 Mon Sep 17 00:00:00 2001 From: YongGang Date: Fri, 20 Oct 2023 10:53:31 -0700 Subject: [PATCH] minor refine --- .../java/org/apache/druid/k8s/overlord/MixRunnerStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions-contrib/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/MixRunnerStrategy.java b/extensions-contrib/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/MixRunnerStrategy.java index 570fbb41f3a6..8ed803c61243 100644 --- a/extensions-contrib/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/MixRunnerStrategy.java +++ b/extensions-contrib/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/MixRunnerStrategy.java @@ -33,7 +33,7 @@ public class MixRunnerStrategy implements RunnerStrategy @Nullable private final Map overrides; private final RunnerStrategy kubernetesRunnerStrategy = new KubernetesRunnerStrategy(); - private WorkerRunnerStrategy workerRunnerStrategy = null; + private WorkerRunnerStrategy workerRunnerStrategy; private final RunnerStrategy defaultRunnerStrategy; private final String defaultRunner; @@ -80,7 +80,7 @@ public RunnerType getRunnerTypeForTask(Task task) public String getWorkerType() { - return workerRunnerStrategy == null ? null : workerRunnerStrategy.getWorkerType(); + return workerRunnerStrategy.getWorkerType(); } private RunnerStrategy getRunnerSelectStrategy(String runnerType)