Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

refactor: Remove unreachable dead code branches

rcourtman80baf3ad95e6
diff --git a/internal/websocket/hub.go b/internal/websocket/hub.go
index 4190493da8..d423cc6792 100644
--- a/internal/websocket/hub.go
+++ b/internal/websocket/hub.go
@@ -151,11 +151,7 @@ func (h *Hub) checkOrigin(r *http.Request) bool {
return true
}
- // Still check for exact same-origin match
- if origin == requestOrigin {
- return true
- }
-
+ // Note: same-origin match already handled above (line 116)
log.Warn().
Str("origin", origin).
Str("requestOrigin", requestOrigin).