Files
DenozordecandCursor 3e46681263
quality / changes (push) Successful in 7s
quality / openapi (push) Skipped
quality / web (push) Skipped
quality / commitlint (push) Skipped
quality / docker-check (push) Skipped
quality / go (push) Successful in 2m18s
quality / postgres-integration (push) Failing after 1m14s
quality / legacy-compatibility (1.0.0) (push) Successful in 58s
quality / legacy-compatibility (2.56.2) (push) Successful in 1m10s
quality / bird2 (push) Successful in 24s
CD / quality (push) Failing after 6m13s
CD / publish (push) Skipped
fix(birddeploy): discard directory close error after sync
golangci-lint (errcheck) падал на defer f.Close() в syncDir. Ошибка Close явно отбрасывается, результат Sync по-прежнему возвращается вызывающему.

Co-authored-by: Cursor <[email protected]>
2026-11-02 18:21:16 +07:00

15 lines
199 B
Go

//go:build !windows
package birddeploy
import "os"
func syncDir(path string) error {
f, err := os.Open(path)
if err != nil {
return err
}
defer func() { _ = f.Close() }()
return f.Sync()
}