From 0afb4e5c53cd0764a23bb4e7fa8740d6afbf4be0 Mon Sep 17 00:00:00 2001 From: Ninglin Du Date: Fri, 2 Aug 2024 10:40:17 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=E5=B0=91=E9=87=8F?= =?UTF-8?q?=E8=8A=82=E6=97=A5=E8=AF=B4=E6=B3=95=20-=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=99=A4=E5=A4=95=E6=99=9A=E4=B8=8A8=E7=82=B9=EF=BC=8C?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E4=BA=86Sequence=E7=9A=84=E8=A1=A8=E8=BE=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/scala/com/xiaomi/duckling/dimension/time/package.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/package.scala b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/package.scala index 2a5239f..8ff74be 100644 --- a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/package.scala +++ b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/package.scala @@ -244,7 +244,7 @@ package object time { val end = if (t2.end.isEmpty) None else if (t1.end.isEmpty) t2.end - else t2.end.map(d => copy(thisGrain, t1.end.get, t2.end.get)) + else t2.end.map(copy(thisGrain, t1.end.get, _)) val t = t2.copy(start = start, end = end) thisGrain.finer() match { case Some(g) => copyGrain(g, stopGrain, t1, t)