Skip to content

Commit e6d4858

Browse files
run gofumpt -extra
1 parent ca41662 commit e6d4858

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

env/web_env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func RegisterGlobalCAs(CAs *x509.CertPool) {
5151

5252
var hostKeys = regexp.MustCompile("^(https?://)(.*?):(.*?)@(.*?)$")
5353

54-
func fetchHTTPConstituentParts(u *url.URL) (username string, password string, envURL string, err error) {
54+
func fetchHTTPConstituentParts(u *url.URL) (username, password, envURL string, err error) {
5555
envURL = u.String()
5656
if hostKeys.MatchString(envURL) {
5757
parts := hostKeys.FindStringSubmatch(envURL)

net/url.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func IsNetworkOrHostDown(err error, expectTimeouts bool) bool {
229229
}
230230

231231
// If write to an closed connection, It will make this error
232-
var opErr = &net.OpError{}
232+
opErr := &net.OpError{}
233233
if errors.As(err, &opErr) {
234234
if opErr.Op == "write" && opErr.Net == "tcp" {
235235
if es, ok := opErr.Err.(*os.SyscallError); ok && es.Syscall == "wsasend" {

words/damerau-levenshtein.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func minimum(integers []int) (minVal int) {
3232

3333
// DamerauLevenshteinDistance calculates distance between two strings using an algorithm
3434
// described in https://en.wikipedia.org/wiki/Damerau-Levenshtein_distance
35-
func DamerauLevenshteinDistance(a string, b string) int {
35+
func DamerauLevenshteinDistance(a, b string) int {
3636
var cost int
3737
d := make([][]int, len(a)+1)
3838
for i := 1; i <= len(a)+1; i++ {

0 commit comments

Comments
 (0)