From 38a2a5f4834877f5e356728b84881ae5d222cd80 Mon Sep 17 00:00:00 2001 From: ericbarron329 Date: Sun, 17 Mar 2024 13:06:38 -0700 Subject: [PATCH] Modified size to isEmpty --- .../main/java/org/eclipse/jkube/kit/common/util/EnvUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/EnvUtil.java b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/EnvUtil.java index 7939186a34..faa0762444 100644 --- a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/EnvUtil.java +++ b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/EnvUtil.java @@ -262,7 +262,7 @@ public static Map extractFromPropertiesAsMap(String prefix, Prop ret.put(mapKey, properties.getProperty(propName)); } } - return ret.size() > 0 ? ret : null; + return !ret.isEmpty() ? ret : null; } /**