all: gofmt

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>
This commit is contained in:
sivchari 2024-03-11 23:28:30 +09:00 committed by Gopher Robot
parent d85d11f101
commit a18aa0e3d1
2 changed files with 2 additions and 2 deletions

View File

@ -414,7 +414,7 @@ func tJSDelimited(c context, s []byte) (context, int) {
// If "</script" appears in a regex literal, the '/' should not // If "</script" appears in a regex literal, the '/' should not
// close the regex literal, and it will later be escaped to // close the regex literal, and it will later be escaped to
// "\x3C/script" in escapeText. // "\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++ i++
} else if !inCharset { } else if !inCharset {
c.state, c.jsCtx = stateJS, jsCtxDivOp c.state, c.jsCtx = stateJS, jsCtxDivOp

View File

@ -182,7 +182,7 @@ func parseIPv4Slow(s string) (Addr, error) {
// parseWord converts a 16-bit hex string into its corresponding // parseWord converts a 16-bit hex string into its corresponding
// two-byte value. // two-byte value.
func parseWord(s string) (byte, byte, error) { 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) return 0, 0, fmt.Errorf("parseWord(%q): invalid word", s)
} }
ret, err := strconv.ParseUint(s, 16, 16) ret, err := strconv.ParseUint(s, 16, 16)