Skip to content

Commit 9042d0e

Browse files
authored
Merge pull request #91 from takashabe/fix-nil-check-hooks
Fix Incorrect Nil Check in HooksContext.begin Method
2 parents ecb8191 + dfa5978 commit 9042d0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ func (h *HooksContext) preBegin(c context.Context, conn *Conn) (interface{}, err
509509
}
510510

511511
func (h *HooksContext) begin(c context.Context, ctx interface{}, conn *Conn) error {
512-
if h == nil || h.Open == nil {
512+
if h == nil || h.Begin == nil {
513513
return nil
514514
}
515515
return h.Begin(c, ctx, conn)

0 commit comments

Comments
 (0)