代码优化

This commit is contained in:
mxd
2021-06-21 21:16:25 +08:00
parent 567789fbf4
commit 7b2e2a9d04

View File

@@ -228,9 +228,7 @@ public class ApiInfo extends MagicEntity {
.flatMap(it -> it.getOptions().stream())
.filter(it -> key.equals(it.getName()))
.findFirst()
.map(it -> {
return Objects.toString(it.getValue(), null);
}).orElse(null);
.map(it -> Objects.toString(it.getValue(), null)).orElse(null);
}
@Override