mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
🔥 chore: unnecessary code
This commit is contained in:
parent
e9690a5b50
commit
503be7b83f
@ -57,9 +57,7 @@ func (n *Notification) reqBody(message string) (string, error) {
|
||||
}
|
||||
params := url.Values{}
|
||||
for k, v := range data {
|
||||
params.Add(k, replaceParamsInString(v, message, func(msg string) string {
|
||||
return url.QueryEscape(msg)
|
||||
}))
|
||||
params.Add(k, replaceParamsInString(v, message, nil))
|
||||
}
|
||||
return params.Encode(), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user