From 968e381e6d9bee3b97919b0e95300a65aa662885 Mon Sep 17 00:00:00 2001 From: Yun <995116474@qq.com> Date: Wed, 26 Jun 2024 19:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E8=AE=BE=E7=BD=AE=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=B0=B1=E4=B8=80=E7=9B=B4=E4=BF=9D=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- remove.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remove.go b/remove.go index 9fd5b60..be46866 100644 --- a/remove.go +++ b/remove.go @@ -32,8 +32,9 @@ func (l *Logger) walkAndDel() error { fmt.Println(err) return err } + // 没设置删除天数 if l.option.days <= 0 { - l.option.days = 1 + return nil } // 判断最后修改时间是否大于3天