Skip to content

Commit 3ea871d

Browse files
committed
Inline single use local variable
1 parent b041634 commit 3ea871d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/apache/commons/lang3/SystemProperties.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3759,8 +3759,7 @@ static String getProperty(final String property, final Supplier<String> defaultI
37593759
if (StringUtils.isEmpty(property)) {
37603760
return Suppliers.get(defaultIfAbsent);
37613761
}
3762-
final String value = System.getProperty(property);
3763-
return StringUtils.getIfEmpty(value, defaultIfAbsent);
3762+
return StringUtils.getIfEmpty(System.getProperty(property), defaultIfAbsent);
37643763
} catch (final SecurityException ignore) {
37653764
// We are not allowed to look at this property.
37663765
//

0 commit comments

Comments
 (0)