Skip to content

Commit fa82228

Browse files
committed
refactor: remove redundant null check in addNonProfileSpecificPropertySource
Signed-off-by: Geonwook Ham <tomy8964@naver.com>
1 parent 581b67d commit fa82228

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/AwsS3EnvironmentRepository.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ private void addNonProfileSpecificPropertySource(Environment environment, String
247247
List<S3ConfigFile> s3ConfigFiles = searchPaths.isEmpty() ? getS3ConfigFile(app, profile, label,
248248
this::getNonProfileSpecificPropertiesOrJsonConfigFile, this::getNonProfileSpecificS3ConfigFileYaml)
249249
: Collections.emptyList();
250-
if (s3ConfigFiles != null) {
251-
addPropertySource(environment, s3ConfigFiles);
252-
}
250+
addPropertySource(environment, s3ConfigFiles);
253251
}
254252

255253
private void addPropertySource(Environment environment, List<S3ConfigFile> s3ConfigFiles) {

0 commit comments

Comments
 (0)