1
0
mirror of synced 2025-12-23 02:18:07 +08:00

refactor: Remove unnecessary parentheses

This commit is contained in:
Kyle Scully
2021-10-13 23:20:08 -07:00
committed by GitHub
parent 0bcba32ea4
commit e68477c26c
2 changed files with 5 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ public class WxQidianDialServiceImplTest {
IVRListResponse iVRListResponse = this.wxService.getDialService().getIVRList();
Assert.assertEquals(iVRListResponse.getErrcode(), new Integer(0));
log.info("ivr size:" + iVRListResponse.getNode().size());
Optional<Ivr> optional = iVRListResponse.getNode().stream().filter((o) -> o.getIvr_name().equals("自动接听需求测试"))
Optional<Ivr> optional = iVRListResponse.getNode().stream().filter(o -> o.getIvr_name().equals("自动接听需求测试"))
.findFirst();
Assert.assertTrue(optional.isPresent());
Ivr ivr = optional.get();