Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	go.mod
#	go.sum
  • Loading branch information
nexryai committed May 9, 2024
2 parents 879d2a4 + f95a752 commit ca8771f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## summaly-go
Misskey(とその派生)で使えるsummaly-proxy
Misskey(とその派生)で使えるGoで書かれた軽量なsummaly-proxy
中身は[別ライブラリ(summergo)として](https://github.com/nexryai/summergo)公開しています


Expand Down
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
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func main() {

err := app.Listen(":3000")
if err != nil {
log.FatalWithDetail("err:", err)
log.FatalWithDetail("Failed to listen on :3000 >>> ", err)
os.Exit(1)
}
}

0 comments on commit ca8771f

Please sign in to comment.