Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brennan2005 committed May 28, 2024
1 parent d048df9 commit 29aeaff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/search/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ func SeedEvents(db *gorm.DB) error {
if err != nil {
return err
}
http.DefaultClient.Do(req)

resp, err := http.DefaultClient.Do(req)

Check failure on line 89 in backend/search/seed.go

View workflow job for this annotation

GitHub Actions / Lint

SA4006: this value of `resp` is never used (staticcheck)
if err != nil {
return err
}
var events []models.Event

if err := db.Preload("Tag").Preload("Clubs").Not("is_draft = ?", true).Not("is_archived = ?", true).Find(&events).Error; err != nil {
Expand Down Expand Up @@ -119,7 +122,7 @@ func SeedEvents(db *gorm.DB) error {
}
req.Header.Set("Content-Type", "application/json")

resp, err := http.DefaultClient.Do(req)
resp, err = http.DefaultClient.Do(req)
if err != nil {
stdout.WriteString(fmt.Sprintf("Error making _bulk request for event seeding: %s\n", err.Error()))
}
Expand Down

0 comments on commit 29aeaff

Please sign in to comment.