aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-19 12:53:24 -0700
committerFChannel <>2022-06-19 12:53:24 -0700
commit799569934fa7b2b0cfd9c981c67f9c63506469d1 (patch)
treedff2bf72d7ee39edc3612c90054b72e28893a844 /main.go
parentccdbe6fda1c783be80e74fcb97a10bef8d0de24d (diff)
last time with version conflicts on merge.....
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.go b/main.go
index 140682b..bba9e0f 100644
--- a/main.go
+++ b/main.go
@@ -2811,7 +2811,6 @@ func AddInstanceToIndexDB(db *sql.DB, actor string) {
func GetCollectionFromReq(path string) Collection {
req, err := http.NewRequest("GET", path, nil)
-
CheckError(err, "error with getting collection from req")
req.Header.Set("Accept", activitystreams)
@@ -2826,11 +2825,7 @@ func GetCollectionFromReq(path string) Collection {
var respCollection Collection
- err = json.Unmarshal(body, &respCollection)
-
- if err != nil {
- panic(err)
- }
+ _ = json.Unmarshal(body, &respCollection)
return respCollection
}