Remove unnecessary null check in SysEnvPropSource

Remove unnecessary null check and dead code from
SystemEnvironmentPropertySource.

Issue: SPR-10318
This commit is contained in:
Phillip Webb 2013-02-25 15:35:13 -08:00
parent 29f4374bcf
commit 009d2a5efd
1 changed files with 0 additions and 4 deletions

View File

@ -88,10 +88,6 @@ public class SystemEnvironmentPropertySource extends MapPropertySource {
public Object getProperty(String name) {
Assert.notNull(name, "property name must not be null");
String actualName = resolvePropertyName(name);
if (actualName == null) {
// at this point we know the property does not exist
return null;
}
if (logger.isDebugEnabled() && !name.equals(actualName)) {
logger.debug(String.format(
"PropertySource [%s] does not contain '%s', but found equivalent '%s'",