Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Jan 9, 2025
1 parent 20619f5 commit ee39ad4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions service/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/benpate/data/option"
"github.com/benpate/derp"
"github.com/benpate/exp"
"github.com/davecgh/go-spew/spew"
)

// Search defines a service that manages all searchable pages in a domain.
Expand Down Expand Up @@ -143,8 +142,6 @@ func (service *Search) Upsert(searchResult model.SearchResult) error {

err := service.LoadByURL(searchResult.URL, &original)

spew.Dump(err)

if err == nil {
original.Update(searchResult)
} else if derp.NotFound(err) {
Expand All @@ -154,7 +151,6 @@ func (service *Search) Upsert(searchResult model.SearchResult) error {
}

comment := iif(original.IsNew(), "added", "updated")
spew.Dump(original)

if err := service.Save(&original, comment); err != nil {
return derp.Wrap(err, "service.Search.Add", "Error adding Search", searchResult)
Expand Down

0 comments on commit ee39ad4

Please sign in to comment.