chore: use range-over-integer (Go 1.22+)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d60e87dac8
commit
eb186027a0
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue