Skip to content

Commit

Permalink
Fix other nil checks
Browse files Browse the repository at this point in the history
  • Loading branch information
shivshav committed Dec 19, 2024
1 parent 0a42efc commit c38fac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func ChainLifecycleHooks(hooks ...LifecycleHooks) LifecycleHooks {
Headers: make(map[string][]byte),
}
for _, h := range hooks {
if h.PreProcessing != nil {
if h.PreWrite != nil {
var err error

resp, err := h.PreWrite(ctx, meta)
Expand All @@ -185,7 +185,7 @@ func ChainLifecycleHooks(hooks ...LifecycleHooks) LifecycleHooks {
},
PostFanout: func(ctx context.Context) {
for _, h := range hooks {
if h.PostRead != nil {
if h.PostFanout != nil {
h.PostFanout(ctx)
}
}
Expand Down

0 comments on commit c38fac1

Please sign in to comment.