From 9a9f4464d5b11afcf0607e63d222e829efa334a6 Mon Sep 17 00:00:00 2001 From: kami Date: Sat, 1 Aug 2026 14:21:55 +0400 Subject: [PATCH] ipc: gofmt unlock_test.go The explicit-wrap assertions went in unformatted and make test's fmt-check step failed on them. Found in review of #77. --- internal/ipc/unlock_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/ipc/unlock_test.go b/internal/ipc/unlock_test.go index f055d5f..7d3d541 100644 --- a/internal/ipc/unlock_test.go +++ b/internal/ipc/unlock_test.go @@ -42,7 +42,11 @@ func TestUnlockDeliversSecretToHook(t *testing.T) { var gotUnlock, gotWrap []byte var gotExplicit bool srv.UnlockFn = func(_ context.Context, s []byte) error { gotUnlock = bytes.Clone(s); return nil } - srv.WrapKeyFn = func(_ context.Context, s []byte, explicit bool) error { gotWrap = bytes.Clone(s); gotExplicit = explicit; return nil } + srv.WrapKeyFn = func(_ context.Context, s []byte, explicit bool) error { + gotWrap = bytes.Clone(s) + gotExplicit = explicit + return nil + } ctx := context.Background() if err := cli.Unlock(ctx, secret); err != nil {