Fix lint error
This commit is contained in:
parent
2a7a4e700e
commit
e12f347650
@ -31,7 +31,7 @@ func (app *Application) message_send(w http.ResponseWriter, r *http.Request) {
|
|||||||
body, err := io.ReadAll(r.Body)
|
body, err := io.ReadAll(r.Body)
|
||||||
panic_if(err)
|
panic_if(err)
|
||||||
var message_data struct {
|
var message_data struct {
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
}
|
}
|
||||||
panic_if(json.Unmarshal(body, &message_data))
|
panic_if(json.Unmarshal(body, &message_data))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user