mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-29 16:52: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"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"hash"
|
"hash"
|
||||||
"io/ioutil"
|
|
||||||
"log"
|
"log"
|
||||||
"math"
|
"math"
|
||||||
"net"
|
"net"
|
||||||
|
@ -750,7 +749,7 @@ func (h *Hooks) LoadFromFile(path string, asTemplate bool) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// parse hook file for hooks
|
// parse hook file for hooks
|
||||||
file, e := ioutil.ReadFile(path)
|
file, e := os.ReadFile(path)
|
||||||
|
|
||||||
if e != nil {
|
if e != nil {
|
||||||
return e
|
return e
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue