Rehabilitate all executables

This commit is contained in:
lash
2024-09-22 02:33:11 +01:00
parent 28fc7a0462
commit 84422684c5
4 changed files with 8 additions and 12 deletions

View File

@@ -98,9 +98,7 @@ func main() {
cfg.EngineDebug = true
}
resourceDir := scriptDir
menuStorageService := storage.NewMenuStorageService(dbDir, resourceDir)
rs, err := menuStorageService.GetResource(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
@@ -113,7 +111,7 @@ func main() {
os.Exit(1)
}
userdataStore := menuStorageService.GetUserdataDb(ctx)
userdataStore, err := menuStorageService.GetUserdataDb(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)
@@ -126,7 +124,7 @@ func main() {
}
lhs, err := handlers.NewLocalHandlerService(pfp, true, dbResource, cfg, rs)
lhs.WithDataStore(&userdataStore)
lhs.SetDataStore(&userdataStore)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())