Skip to content

Commit

Permalink
feat: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DipandaAser committed Aug 27, 2023
1 parent a85b995 commit da95da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/internal/handlers/job_offers_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func PostJobOffer(c *gin.Context) {
}
location, err := fs.UploadJobOfferCompanyPicture(query.CompanyImage, offer.ID, extensionDeatils.String(), extensionDeatils.Extension())
if err != nil {
db.DeleteJobOffer(offer.ID)
_ = db.DeleteJobOffer(offer.ID)
log.Error(err)
c.JSON(http.StatusInternalServerError,
gin.H{"error": "could not post job offer. Image upload failed"})
Expand All @@ -133,7 +133,7 @@ func PostJobOffer(c *gin.Context) {

err = db.PostJobOfferImage(offer.ID, location)
if err != nil {
db.DeleteJobOffer(offer.ID)
_ = db.DeleteJobOffer(offer.ID)
log.Error(err)
c.JSON(http.StatusInternalServerError,
gin.H{"error": "could not post job offer image"})
Expand Down

0 comments on commit da95da5

Please sign in to comment.