Skip to content

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

fix: errcheck lint — handle Fprintf/Write returns

botac4b59d4c2f4
diff --git a/handler_snapshot.go b/handler_snapshot.go
index 5820e07b..bd027f56 100644
--- a/handler_snapshot.go
+++ b/handler_snapshot.go
@@ -99,8 +99,8 @@ func (b *Bridge) handleSnapshot(w http.ResponseWriter, r *http.Request) {
if format == "text" {
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
w.WriteHeader(200)
- fmt.Fprintf(w, "# %s\n# %s\n# %d nodes\n\n", title, url, len(flat))
- w.Write([]byte(formatSnapshotText(flat)))
+ _, _ = fmt.Fprintf(w, "# %s\n# %s\n# %d nodes\n\n", title, url, len(flat))
+ _, _ = w.Write([]byte(formatSnapshotText(flat)))
return
}