Browse Source

Merge pull request #40963 from quaff

* pr/40963:
  Remove unnecessary null check

Closes gh-40963
pull/41000/head
Moritz Halbritter 2 years ago
parent
commit
8a7d670ff1
  1. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySources.java

2
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySources.java

@ -87,7 +87,7 @@ public final class ConfigurationPropertySources { @@ -87,7 +87,7 @@ public final class ConfigurationPropertySources {
Assert.isInstanceOf(ConfigurableEnvironment.class, environment);
MutablePropertySources sources = ((ConfigurableEnvironment) environment).getPropertySources();
PropertySource<?> attached = getAttached(sources);
if (attached == null || !isUsingSources(attached, sources)) {
if (!isUsingSources(attached, sources)) {
attached = new ConfigurationPropertySourcesPropertySource(ATTACHED_PROPERTY_SOURCE_NAME,
new SpringConfigurationPropertySources(sources));
}

Loading…
Cancel
Save