Skip to content

Commit

Permalink
chore: linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
puni9869 committed Nov 9, 2024
1 parent 6818e52 commit 05db2c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/spider/spider.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ func ScrapeUrl(url *models.Url) {
}
comment := make(map[string]string)
comment["statusCode"] = strconv.Itoa(resp.StatusCode)
jsonStr, err := json.Marshal(comment)

jsonStr, _ := json.Marshal(comment)
url.Comment = string(jsonStr)

db := database.Db()
db.Updates(url)

log.Info("Updating weblink metadata after fetching.", url.WebLink)
}

0 comments on commit 05db2c1

Please sign in to comment.