Skip to content

Commit

Permalink
clearing data on artifact.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Dec 6, 2024
1 parent 44a9148 commit b3bb6f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handler/app/dirs.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,16 @@ func (dir Dirs) Artifact(c echo.Context, db *sql.DB, logger *zap.SugaredLogger,
if filerecord.EmbedReadme(art) {
data, err = dir.embed(art, data)
if err != nil {
clear(data)
logger.Error(errorWithID(err, dir.URI, art.ID))
}
}
err = c.Render(http.StatusOK, name, data)
if err != nil {
clear(data)
return InternalErr(c, name, errorWithID(err, dir.URI, art.ID))
}
clear(data)
return nil
}

Expand Down

0 comments on commit b3bb6f9

Please sign in to comment.