Merge pull request #41917 from quaff

* pr/41917:
  Remove unnecessary null check

Closes gh-41917
This commit is contained in:
Stéphane Nicoll 2024-08-19 09:39:49 +02:00
commit 1733f44fea
1 changed files with 1 additions and 1 deletions

View File

@ -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;