Fix lint error
This commit is contained in:
parent
71230e3886
commit
5d727487ba
@ -38,8 +38,8 @@ func (app *Application) message_detail(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"`
|
||||||
LatestPollingTimestamp int `json:"latest_polling_timestamp,string"`
|
LatestPollingTimestamp int `json:"latest_polling_timestamp,string"`
|
||||||
}
|
}
|
||||||
panic_if(json.Unmarshal(body, &message_data))
|
panic_if(json.Unmarshal(body, &message_data))
|
||||||
trove := scraper.SendDMMessage(room_id, message_data.Text, 0)
|
trove := scraper.SendDMMessage(room_id, message_data.Text, 0)
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package scraper
|
package scraper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"html"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"html"
|
|
||||||
"encoding/json"
|
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user