Merge pull request #41917 from quaff
* pr/41917: Remove unnecessary null check Closes gh-41917
This commit is contained in:
commit
1733f44fea
|
@ -180,7 +180,7 @@ class SpringConfigurationPropertySource implements ConfigurationPropertySource {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static PropertySource<?> getRootSource(PropertySource<?> source) {
|
private static PropertySource<?> getRootSource(PropertySource<?> source) {
|
||||||
while (source.getSource() != null && source.getSource() instanceof PropertySource<?> propertySource) {
|
while (source.getSource() instanceof PropertySource<?> propertySource) {
|
||||||
source = propertySource;
|
source = propertySource;
|
||||||
}
|
}
|
||||||
return source;
|
return source;
|
||||||
|
|
Loading…
Reference in New Issue