Modify the enumeration judgment usage (#6518)
This commit is contained in:
parent
1a7cc805af
commit
d61a4ef6ae
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue