Skip to content

Commit

Permalink
replace for Reader
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
  • Loading branch information
Pavel Okhlopkov committed Dec 4, 2024
1 parent 71ea36f commit 45ed031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/module_manager/models/hooks/kind/batch_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func GetBatchHookConfig(hookPath string) ([]sdkhook.HookConfig, error) {
}

cfgs := make([]sdkhook.HookConfig, 0)
buf := bytes.NewBuffer(o)
buf := bytes.NewReader(o)
err = json.NewDecoder(buf).Decode(&cfgs)
if err != nil {
return nil, fmt.Errorf("decode: %w", err)
Expand Down

0 comments on commit 45ed031

Please sign in to comment.