From 151f1173a1b592d4df51258f7635de657512cbfc Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Fri, 19 Sep 2025 10:46:49 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20ineffassign=20=E2=80=9Cdate=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/service/tgbot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/service/tgbot.go b/web/service/tgbot.go index bbea32c5..44e4af28 100644 --- a/web/service/tgbot.go +++ b/web/service/tgbot.go @@ -856,7 +856,7 @@ func (t *Tgbot) answerCallback(callbackQuery *telego.CallbackQuery, isAdmin bool if len(dataArray) == 3 { days, err := strconv.Atoi(dataArray[2]) if err == nil { - var date int64 = 0 + var date int64 if days > 0 { traffic, err := t.inboundService.GetClientTrafficByEmail(email) if err != nil { @@ -960,7 +960,7 @@ func (t *Tgbot) answerCallback(callbackQuery *telego.CallbackQuery, isAdmin bool case "add_client_reset_exp_c": client_ExpiryTime = 0 days, _ := strconv.Atoi(dataArray[1]) - var date int64 = 0 + var date int64 if client_ExpiryTime > 0 { if client_ExpiryTime-time.Now().Unix()*1000 < 0 { date = -int64(days * 24 * 60 * 60000)