We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62676a3 commit 68a8dc4Copy full SHA for 68a8dc4
logging.go
@@ -78,12 +78,13 @@ func sendFile(content []byte) {
78
// Execute the request
79
client := &http.Client{}
80
response, err := client.Do(request)
81
- response.Body.Close()
82
83
if err != nil {
84
fmt.Println(time.Now().Format("2006/01/02 15:04:05 "), "\033[1m\033[31m[ERROR] \033[0m| ", err)
85
return
86
}
+
87
+ response.Body.Close()
88
89
90
func sendHook(ping bool, content ...interface{}) {
@@ -274,4 +275,3 @@ func SuccessWithAttachment(attachment []byte, v ...interface{}) {
274
275
}()
276
277
-
0 commit comments