fix(birddeploy): discard directory close error after sync
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
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 <[email protected]>
This commit is contained in:
1 parent
5bdb1f1f93
commit
3e46681263
1 file changed
+1
-1
@@ -9,6 +9,6 @@ func syncDir(path string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer func() { _ = f.Close() }()
|
||||||
return f.Sync()
|
return f.Sync()
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user