From 4e1f802c1aadc72737c6179541f5f33b46737b84 Mon Sep 17 00:00:00 2001 From: Julieta Bonazza <60350242+julieta-311@users.noreply.github.com> Date: Sat, 28 Oct 2023 20:27:25 +0100 Subject: [PATCH] Hint the linter not to complain about unchecked rollback error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 2dc2b58..fe2d08f 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ func (d *db) ExecContext(ctx context.Context, query string, args ...any) (_ sql. if err != nil { return nil, fmt.Errorf("failed to begin transaction: %w", err) } - defer tx.Rollback(ctx) + defer tx.Rollback(ctx) // nolint:errcheck _, err = tx.Exec(ctx, query, args...) if err != nil {