From 6041d10e3d5d8b0021dd596bdee8f0064a495f80 Mon Sep 17 00:00:00 2001 From: Ilya Kryuchkov <42733472+kr-ilya@users.noreply.github.com> Date: Mon, 5 Jan 2026 07:54:56 +0300 Subject: Refactor code and fix linter warnings (#3627) * refactor: use any instead of empty interface * refactor: code cleanup --- web/job/clear_logs_job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/job') diff --git a/web/job/clear_logs_job.go b/web/job/clear_logs_job.go index 85e0d64a..4ec0ec7f 100644 --- a/web/job/clear_logs_job.go +++ b/web/job/clear_logs_job.go @@ -45,7 +45,7 @@ func (j *ClearLogsJob) Run() { } // Clear log files and copy to previous logs - for i := 0; i < len(logFiles); i++ { + for i := range len(logFiles) { if i > 0 { // Copy to previous logs logFilePrev, err := os.OpenFile(logFilesPrev[i-1], os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644) -- cgit v1.2.3