mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-07 04:09:15 +02:00
fix:#41 fixed sonarqube hotspots
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
func setupApp() *pocketbase.PocketBase {
|
||||
app := pocketbase.New()
|
||||
|
||||
// loosely check if it was executed using "go run"
|
||||
@@ -44,8 +44,12 @@ func main() {
|
||||
service.AddRoutes(app)
|
||||
service.AddSchedules(app)
|
||||
|
||||
return app
|
||||
}
|
||||
|
||||
func main() {
|
||||
app := setupApp()
|
||||
if err := app.Start(); err != nil {
|
||||
slog.Error("Failed to start app: ", "error", err)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user