Skip to content

Commit 99352de

Browse files
committed
minor simplification
Signed-off-by: wind57 <[email protected]>
1 parent 3f81769 commit 99352de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/SourceDataEntriesProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private static Map<String, Object> defaultProcessAllEntries(Map<String, String>
176176

177177
private static Map<String, Object> extractProperties(String resourceName, String content, Environment environment) {
178178

179-
if (resourceName.endsWith(".yml") || resourceName.endsWith(".yaml") || resourceName.endsWith(".properties")) {
179+
if (ENDS_IN_EXTENSION.test(resourceName)) {
180180

181181
if (resourceName.endsWith(".properties")) {
182182
LOG.debug("entry : " + resourceName + " will be treated as a single properties file");

0 commit comments

Comments
 (0)