mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-06 17:29:19 +00:00
Merge pull request #41917 from quaff
* pr/41917: Remove unnecessary null check Closes gh-41917
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ class SpringConfigurationPropertySource implements ConfigurationPropertySource {
|
||||
}
|
||||
|
||||
private static PropertySource<?> getRootSource(PropertySource<?> source) {
|
||||
while (source.getSource() != null && source.getSource() instanceof PropertySource<?> propertySource) {
|
||||
while (source.getSource() instanceof PropertySource<?> propertySource) {
|
||||
source = propertySource;
|
||||
}
|
||||
return source;
|
||||
|
||||
Reference in New Issue
Block a user