Skip to content

Commit

Permalink
Update internal/webserver/controller/document/download.go
Browse files Browse the repository at this point in the history
  • Loading branch information
svera authored Sep 9, 2024
1 parent ff152f2 commit e58c141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/webserver/controller/document/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func (d *Controller) Download(c *fiber.Ctx) error {
log.Println(err)

Check failure on line 46 in internal/webserver/controller/document/download.go

View workflow job for this annotation

GitHub Actions / build

undefined: log
return fiber.ErrInternalServerError
}
output, err = io.ReadAll(file)
if err != nil {
if output, err = io.ReadAll(file); err != nil {
log.Println(err)

Check failure on line 50 in internal/webserver/controller/document/download.go

View workflow job for this annotation

GitHub Actions / build

undefined: log
return fiber.ErrInternalServerError
}
fileName = filepath.Base(document.ID)
Expand Down

0 comments on commit e58c141

Please sign in to comment.