Skip to content

Commit 925eca0

Browse files
committed
Fix build with Go 1.24
Go 1.24 provides stricter checking that forbids passing a variable as a format string to Printf-like functions with no other arguments. Remove instances of this. See also: https://tip.golang.org/doc/go1.24#vet Signed-off-by: W. Michael Petullo <[email protected]>
1 parent 11bda98 commit 925eca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autobahn_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestAutobahn(t *testing.T) {
9292
}
9393
})
9494

95-
c, _, err := websocket.Dial(ctx, fmt.Sprintf(wstestURL+"/updateReports?agent=main"), nil)
95+
c, _, err := websocket.Dial(ctx, fmt.Sprint(wstestURL+"/updateReports?agent=main"), nil)
9696
assert.Success(t, err)
9797
c.Close(websocket.StatusNormalClosure, "")
9898

0 commit comments

Comments
 (0)