From 00e187181c6090902f3e2aeb95b19aadc85c1029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 5 Dec 2024 16:55:13 +0800 Subject: [PATCH 1/2] chore: rm useless code --- src/generate/dayjs.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/generate/dayjs.ts b/src/generate/dayjs.ts index 91291ce30..24584fee1 100644 --- a/src/generate/dayjs.ts +++ b/src/generate/dayjs.ts @@ -100,9 +100,13 @@ const parseLocale = (locale: string) => { return mapLocale || locale.split('_')[0]; }; +/* istanbul ignore next */ const parseNoMatchNotice = () => { - /* istanbul ignore next */ - noteOnce(false, 'Not match any format. Please help to fire a issue about this.'); + // zombieJ: + // When user typing, its always miss match format. + // This check is meaningless. + // https://github.com/ant-design/ant-design/issues/51839 + // noteOnce(false, 'Not match any format. Please help to fire a issue about this.'); }; const generateConfig: GenerateConfig = { From 69125151e5c874a645c6801aa2b4c50b35ac9998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 5 Dec 2024 17:04:47 +0800 Subject: [PATCH 2/2] fix: lint --- src/generate/dayjs.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/generate/dayjs.ts b/src/generate/dayjs.ts index 24584fee1..88acae16c 100644 --- a/src/generate/dayjs.ts +++ b/src/generate/dayjs.ts @@ -1,6 +1,5 @@ import type { Dayjs } from 'dayjs'; import dayjs from 'dayjs'; -import { noteOnce } from 'rc-util/lib/warning'; import weekday from 'dayjs/plugin/weekday'; import localeData from 'dayjs/plugin/localeData'; import weekOfYear from 'dayjs/plugin/weekOfYear';