Skip to content

Commit 6ff5e30

Browse files
committed
Small tidy up
1 parent 0e3a20d commit 6ff5e30

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/client/GrpcClientProperties.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,16 +523,13 @@ private Object map(Map<String, Object> input) {
523523
map.put(key, extract(value));
524524
}
525525
}
526-
if (list.size() > 0) {
526+
if (!list.isEmpty()) {
527527
return list;
528528
}
529529
return map;
530530
}
531531

532532
private Object extract(Object input) {
533-
if (input == null) {
534-
return null;
535-
}
536533
if (input instanceof Map) {
537534
@SuppressWarnings("unchecked")
538535
Map<String, Object> generic = (Map<String, Object>) input;

0 commit comments

Comments
 (0)