From 712400557ed22ed5ff6d35b3faa973af6c5a6e31 Mon Sep 17 00:00:00 2001 From: ianshaw Date: Wed, 31 Dec 2025 18:24:39 -0800 Subject: [PATCH] =?UTF-8?q?fix(lint):=20=E7=A7=BB=E9=99=A4=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF=E6=9C=AB=E5=B0=BE=E7=9A=84=E5=8F=A5?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 符合 Go staticcheck ST1005 规则 - 错误信息不应以标点符号结尾 --- backend/internal/repository/migrations_runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/repository/migrations_runner.go b/backend/internal/repository/migrations_runner.go index 39b633b1..1b187830 100644 --- a/backend/internal/repository/migrations_runner.go +++ b/backend/internal/repository/migrations_runner.go @@ -133,7 +133,7 @@ func applyMigrationsFS(ctx context.Context, db *sql.DB, fsys fs.FS) error { "Solutions:\n"+ " 1. Revert to original: git log --oneline -- migrations/%s && git checkout -- migrations/%s\n"+ " 2. For new changes, create a new migration file instead of modifying existing ones\n"+ - "Note: Modifying applied migrations breaks the immutability principle and can cause inconsistencies across environments.", + "Note: Modifying applied migrations breaks the immutability principle and can cause inconsistencies across environments", name, existing, checksum, name, name, ) }