Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: return empty array [] instead of null for GET /profiles when no profiles exist

Mariofab7ebafa17e
diff --git a/internal/profiles/profiles.go b/internal/profiles/profiles.go
index 51dad765..72e01d0f 100644
--- a/internal/profiles/profiles.go
+++ b/internal/profiles/profiles.go
@@ -72,7 +72,7 @@ func (pm *ProfileManager) List() ([]bridge.ProfileInfo, error) {
return nil, err
}
- var profiles []bridge.ProfileInfo
+ profiles := []bridge.ProfileInfo{}
skip := map[string]bool{"bin": true, "profiles": true}
for _, entry := range entries {
if !entry.IsDir() || skip[entry.Name()] {