style: 合入后修 gofmt/govet 与 RegistrationView 类型检查

This commit is contained in:
Nixevol
2026-09-30 16:34:33 +08:00
parent 8f2ebc7d21
commit 0c9b459fb1
18 changed files with 74 additions and 79 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ func TestFailingMigrationReusesBackup(t *testing.T) {
name: "9999_fail.sql",
body: "THIS IS NOT VALID SQL",
}}
if err := applyPending(w, dir, true, pending); err == nil {
if applyErr := applyPending(w, dir, true, pending); applyErr == nil {
t.Fatal("expected first failing migration to error")
}
backupDir := filepath.Join(dir, "backup")
@@ -40,7 +40,7 @@ func TestFailingMigrationReusesBackup(t *testing.T) {
t.Fatalf("first backups=%v", dirNames(first))
}
if err := applyPending(w, dir, true, pending); err == nil {
if applyErr := applyPending(w, dir, true, pending); applyErr == nil {
t.Fatal("expected second failing migration to error")
}
second, err := os.ReadDir(backupDir)