未验证 提交 d61a4ef6 编写于 作者: H Harry 提交者: GitHub

Modify the enumeration judgment usage (#6518)

上级 1a7cc805
......@@ -53,7 +53,7 @@ public class BrowserLogQueryService implements Service {
final Pagination paging) throws IOException {
PaginationUtils.Page page = PaginationUtils.INSTANCE.exchange(paging);
BrowserErrorCategory errorCategory = Optional.ofNullable(category)
.filter(c -> !c.equals(ErrorCategory.ALL)) // ErrorCategory.All stands for query all.
.filter(c -> c != ErrorCategory.ALL) // ErrorCategory.All stands for query all.
.map(c -> BrowserErrorCategory.valueOf(c.name()))
.orElse(null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册