chore: replace ioutil.ReadFile by os.ReadFile

This commit is contained in:
Tom Hubrecht 2024-11-16 23:18:35 +01:00
parent ce08a68a13
commit c5f2a8f940
No known key found for this signature in database

View file

@ -13,7 +13,6 @@ import (
"errors"
"fmt"
"hash"
"io/ioutil"
"log"
"math"
"net"
@ -750,7 +749,7 @@ func (h *Hooks) LoadFromFile(path string, asTemplate bool) error {
}
// parse hook file for hooks
file, e := ioutil.ReadFile(path)
file, e := os.ReadFile(path)
if e != nil {
return e