Skip to content

Commit

Permalink
Merge pull request #91 from takashabe/fix-nil-check-hooks
Browse files Browse the repository at this point in the history
Fix Incorrect Nil Check in HooksContext.begin Method
  • Loading branch information
shogo82148 authored Nov 14, 2023
2 parents ecb8191 + dfa5978 commit 9042d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func (h *HooksContext) preBegin(c context.Context, conn *Conn) (interface{}, err
}

func (h *HooksContext) begin(c context.Context, ctx interface{}, conn *Conn) error {
if h == nil || h.Open == nil {
if h == nil || h.Begin == nil {
return nil
}
return h.Begin(c, ctx, conn)
Expand Down

0 comments on commit 9042d0e

Please sign in to comment.