gofumpt
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
2bb34751d1
commit
8be14ef6fe
1 changed files with 3 additions and 1 deletions
4
utils.go
4
utils.go
|
@ -328,7 +328,9 @@ func GenerateRandomStringDNSSafe(size int) (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
str = strings.ToLower(strings.ReplaceAll(strings.ReplaceAll(str, "_", ""), "-", ""))
|
str = strings.ToLower(
|
||||||
|
strings.ReplaceAll(strings.ReplaceAll(str, "_", ""), "-", ""),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return str[:size], nil
|
return str[:size], nil
|
||||||
|
|
Loading…
Reference in a new issue