🔥 chore: unnecessary code

This commit is contained in:
naiba 2021-01-03 21:17:39 +08:00
parent e9690a5b50
commit 503be7b83f

View File

@ -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
}