Remove unnecessary null check

See gh-41917
This commit is contained in:
Yanming Zhou
2024-08-19 10:25:07 +08:00
committed by Stéphane Nicoll
parent 7a898cbbec
commit 737a1ed711

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;