fix(ci): 修正分布式实现的 staticcheck 错误

迁移 CLI 不再遮蔽 BeginMigration 的错误,拒绝启动时正确返回失败。规范节点批准错误文案和归档 HTTP 状态常量;tar.Reader 已将旧普通文件类型归一化,无需引用已弃用常量。

验证:CI 固定版本 staticcheck 全量通过;cmd/felis、archivetransfer、backup、distributed 的 go test -race 通过。
This commit is contained in:
Lemon-miaow committed 2026-10-01 20:06:08 +08:00
1 parent b01aae77a2
commit 109701a276
4 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ func VerifyRestored(ctx context.Context, ref, world string) error {
if err != nil {
return err
}
if h.Typeflag != tar.TypeReg && h.Typeflag != tar.TypeRegA {
if h.Typeflag != tar.TypeReg {
continue
}
dst, err := root.Open(h.Name)