mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-28 08:12:28 +00:00
chore: replace ioutil.ReadFile by os.ReadFile
This commit is contained in:
parent
ce08a68a13
commit
c5f2a8f940
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue