Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change chained hooks nil check to correct function (#21)
The `nil` check was incorrect, resulting in a panic if the following conditions hold true: 1. You have a `PostRead` hook func defined 2. You don't have a `PostReadImmediate` hook func defined 3. You use `ChainLifecycleHooks` to use multiple hooks `PostRead` --> `PostReadImmediate` Additionally, a few other hook functions had what I believe are incorrect nil checks. - `PreWrite`: Was checking if `PreProcessing` was `nil` instead of `PreWrite` - `PostFanout`: Was check if `PostRead` was `nil` instead of `PostFanout`
- Loading branch information