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
golangci-lint (errcheck) падал на defer f.Close() в syncDir. Ошибка Close явно отбрасывается, результат Sync по-прежнему возвращается вызывающему. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
199 B
Go
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()
|
|
}
|