Skip to content

Commit

Permalink
remove deprecated io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
shreeharsha-factly committed Jul 8, 2024
1 parent 64f5aae commit f7a28d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package util
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"
"time"
Expand Down Expand Up @@ -143,7 +143,7 @@ func PostWebhook(wh model.Webhook, event string, whData model.WebhookData) {

webHookLog.ResponseStatusCode = resp.StatusCode

body_bytes, err := ioutil.ReadAll(resp.Body)
body_bytes, err := io.ReadAll(resp.Body)
if err != nil {
fmt.Println(err.Error())
return
Expand Down

0 comments on commit f7a28d5

Please sign in to comment.