Skip to content

Commit

Permalink
chore: remove some debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Aug 21, 2023
1 parent 295fa9f commit 1c4ce32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gql/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io"
"time"

"github.com/davecgh/go-spew/spew"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"

Expand Down Expand Up @@ -45,10 +44,8 @@ func FinalizeVersionUploadAsync(ctx context.Context, mod *postgres.Mod, versionI

modInfo, err := validation.ExtractModInfo(ctx, fileData, true, true, mod.ModReference)
if err != nil {
spew.Dump(err)
l.Err(err).Msg("failed extracting mod info")
storage.DeleteMod(ctx, mod.ID, mod.Name, versionID)
return nil, err
return nil, errors.Wrap(err, "failed extracting mod info")
}

if modInfo.ModReference != mod.ModReference {
Expand Down

0 comments on commit 1c4ce32

Please sign in to comment.