From 2d1dfd7cd80f836d12e513d47138a65fd4af0eda Mon Sep 17 00:00:00 2001 From: Nixevol Date: Wed, 30 Sep 2026 19:20:15 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=90=88=E5=85=A5=E5=90=8E=E4=BF=AE?= =?UTF-8?q?=20group=5Ftest=20gofmt=20=E4=B8=8E=20err=20=E9=98=B4=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/app/group/group_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/app/group/group_test.go b/internal/app/group/group_test.go index 94101f4..eb820d4 100644 --- a/internal/app/group/group_test.go +++ b/internal/app/group/group_test.go @@ -622,8 +622,8 @@ func (r *raceTalk) CheckTalkPasswordForJoin(ctx context.Context, actorID, target func TestR307CreateRejectsActorDisabledOrDeletedBeforeWrite(t *testing.T) { t.Parallel() cases := []struct { - name string - code string + name string + code string mutate func(ctx context.Context, t *testing.T, idApp *identity.App, db *store.DB) }{ { @@ -671,8 +671,8 @@ func TestR307CreateRejectsActorDisabledOrDeletedBeforeWrite(t *testing.T) { ctx := context.Background() insertEP(t, db, "alice", 1) insertEP(t, db, "bob", 1) - if err := idApp.SelfSetTalkPassword(ctx, "bob", "secret"); err != nil { - t.Fatal(err) + if setErr := idApp.SelfSetTalkPassword(ctx, "bob", "secret"); setErr != nil { + t.Fatal(setErr) } gate.mutate = func() { tc.mutate(ctx, t, idApp, db) }