Skip to content

Commit 1fc0aa6

Browse files
committed
fix: linting
1 parent 05f864c commit 1fc0aa6

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@
3434

3535
# Binaries and build artifacts
3636
out/
37+
38+
# Database files
39+
agent-browser.db-journal

internal/web/handlers/api.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,6 @@ func (h *APIHandlers) HealthCheck(w http.ResponseWriter, _ *http.Request) {
7979
_, _ = w.Write([]byte(`{"status":"ok"}`))
8080
}
8181

82-
// rootHandler handles the root path
83-
func (h *APIHandlers) rootHandler(w http.ResponseWriter, r *http.Request) {
84-
if r.URL.Path != "/" {
85-
http.NotFound(w, r)
86-
return
87-
}
88-
w.WriteHeader(http.StatusOK)
89-
_, _ = w.Write([]byte("Agent Browser Backend Running\n"))
90-
}
91-
9282
// routeServerGetRequests handles GET requests for server-specific paths and routes to appropriate handlers
9383
func (h *APIHandlers) routeServerGetRequests(w http.ResponseWriter, r *http.Request) {
9484
// Extract server ID and subpath

internal/web/handlers/sse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (h *SSEHandler) handleEvent(event events.Event) {
216216
// processAndBroadcastEvent prepares and broadcasts an SSE message for a given event.
217217
func (h *SSEHandler) processAndBroadcastEvent(event events.Event) {
218218
var sseEventName string = "refresh-list" // Use a generic event name
219-
var serverID int64 = 0
219+
var serverID int64 // Declare without initial assignment
220220
needsBroadcast := false
221221

222222
// Determine if this event requires a list refresh and get ID if relevant

0 commit comments

Comments
 (0)