Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nexryai authored Apr 15, 2024
1 parent 37eeff7 commit f95a752
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/router/summaly.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ func SummalyRouter(app *fiber.App) {
log.ErrorWithDetail("Error on Summarize():", err)
ctx.Status(400)
return ctx.SendString("Invalid URL")
}

if summaly == nil {
} else if summaly == nil {
log.Error("Result is nil. returning 500")
ctx.Status(500)
return ctx.SendString("Internal Server Error")
Expand Down

0 comments on commit f95a752

Please sign in to comment.