chore: use range-over-integer (Go 1.22+)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-02-24 15:53:09 +00:00
parent d60e87dac8
commit eb186027a0
No known key found for this signature in database
GPG key ID: AF404715446AEB41
2 changed files with 2 additions and 2 deletions

View file

@ -235,7 +235,7 @@ func (a DoubleClickAction) Execute(ctx context.Context, wv *Webview) error {
y := elem.BoundingBox.Y + elem.BoundingBox.Height/2
// Double click sequence
for i := 0; i < 2; i++ {
for i := range 2 {
for _, eventType := range []string{"mousePressed", "mouseReleased"} {
_, err := wv.client.Call(ctx, "Input.dispatchMouseEvent", map[string]any{
"type": eventType,

View file

@ -425,7 +425,7 @@ func (c *Client) writePump() {
// Batch queued messages
n := len(c.send)
for i := 0; i < n; i++ {
for range n {
w.Write([]byte{'\n'})
w.Write(<-c.send)
}