]> Cypherpunks repositories - gostls13.git/commitdiff
all: gofmt
authorsivchari <shibuuuu5@gmail.com>
Mon, 11 Mar 2024 14:28:30 +0000 (23:28 +0900)
committerGopher Robot <gobot@golang.org>
Mon, 11 Mar 2024 19:54:31 +0000 (19:54 +0000)
These files are not formatted by gofmt. Thus, run gofmt to format them.

Change-Id: Iea9650e64b1f47cf82739f3a8a34f47740a96455
Reviewed-on: https://go-review.googlesource.com/c/go/+/570398
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/html/template/transition.go
src/net/netip/slow_test.go

index b897bea54213e53c5ef1fc50b4db27d4d9e88689..c430389a345f69b256ede5488a4e2b2940ffe9a2 100644 (file)
@@ -414,7 +414,7 @@ func tJSDelimited(c context, s []byte) (context, int) {
                        // If "</script" appears in a regex literal, the '/' should not
                        // close the regex literal, and it will later be escaped to
                        // "\x3C/script" in escapeText.
-                       if i > 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1 : i+7]), []byte("</script")) {
+                       if i > 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1:i+7]), []byte("</script")) {
                                i++
                        } else if !inCharset {
                                c.state, c.jsCtx = stateJS, jsCtxDivOp
index a05f39de74e10db9f695e36df6a3e13565d0989b..eef41c116dcd2ab77b548412e79ebb07f58d579c 100644 (file)
@@ -182,7 +182,7 @@ func parseIPv4Slow(s string) (Addr, error) {
 // parseWord converts a 16-bit hex string into its corresponding
 // two-byte value.
 func parseWord(s string) (byte, byte, error) {
-       if(len(s) > 4) {
+       if len(s) > 4 {
                return 0, 0, fmt.Errorf("parseWord(%q): invalid word", s)
        }
        ret, err := strconv.ParseUint(s, 16, 16)