@@ -69,7 +69,7 @@ func New(ctx context.Context, conn *sql.DB, cfg *config.Config) (*App, error) {
69 messages := message.NewService(q)
69 messages := message.NewService(q)
70 files := history.NewService(q, conn)
70 files := history.NewService(q, conn)
71 skipPermissionsRequests := cfg.Permissions != nil && cfg.Permissions.SkipRequests
71 skipPermissionsRequests := cfg.Permissions != nil && cfg.Permissions.SkipRequests
72− allowedTools := []string{}
72+ var allowedTools []string
73 if cfg.Permissions != nil && cfg.Permissions.AllowedTools != nil {
73 if cfg.Permissions != nil && cfg.Permissions.AllowedTools != nil {
74 allowedTools = cfg.Permissions.AllowedTools
74 allowedTools = cfg.Permissions.AllowedTools
@@ -415,7 +415,7 @@ func (app *App) Shutdown() {
418− // Call call cleanup functions.
418+ // Call all cleanup functions.
419 for _, cleanup := range app.cleanupFuncs {
419 for _, cleanup := range app.cleanupFuncs {
420 if cleanup != nil {
420 if cleanup != nil {
421 wg.Go(func() {
421 wg.Go(func() {