From 3e466812637242711006fa4e4f8c9b2f29025d14 Mon Sep 17 00:00:00 2001 From: Denozordec Date: Mon, 2 Nov 2026 18:21:16 +0700 Subject: [PATCH] fix(birddeploy): discard directory close error after sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit golangci-lint (errcheck) падал на defer f.Close() в syncDir. Ошибка Close явно отбрасывается, результат Sync по-прежнему возвращается вызывающему. Co-authored-by: Cursor --- internal/birddeploy/sync_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/birddeploy/sync_unix.go b/internal/birddeploy/sync_unix.go index 029fe42..9dafed2 100644 --- a/internal/birddeploy/sync_unix.go +++ b/internal/birddeploy/sync_unix.go @@ -9,6 +9,6 @@ func syncDir(path string) error { if err != nil { return err } - defer f.Close() + defer func() { _ = f.Close() }() return f.Sync() }