Fix lint error

This commit is contained in:
Alessio 2024-05-05 11:23:06 -07:00
parent 71230e3886
commit 5d727487ba
2 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ func (app *Application) message_detail(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(r.Body)
panic_if(err)
var message_data struct {
Text string `json:"text"`
LatestPollingTimestamp int `json:"latest_polling_timestamp,string"`
Text string `json:"text"`
LatestPollingTimestamp int `json:"latest_polling_timestamp,string"`
}
panic_if(json.Unmarshal(body, &message_data))
trove := scraper.SendDMMessage(room_id, message_data.Text, 0)

View File

@ -1,11 +1,11 @@
package scraper
import (
"encoding/json"
"fmt"
"html"
"net/url"
"strings"
"html"
"encoding/json"
"github.com/google/uuid"
)