golangci-lint --fix

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2022-10-18 12:09:10 +02:00
parent 4cb7d63e8b
commit 36ad0003a9
No known key found for this signature in database
4 changed files with 41 additions and 34 deletions

View file

@ -15,8 +15,10 @@ import (
"github.com/ory/dockertest/v3"
)
const hsicHashLength = 6
const dockerContextPath = "../."
const (
hsicHashLength = 6
dockerContextPath = "../."
)
var errHeadscaleStatusCodeNotOk = errors.New("headscale status code not ok")
@ -32,7 +34,8 @@ type HeadscaleInContainer struct {
func New(
pool *dockertest.Pool,
port int,
network *dockertest.Network) (*HeadscaleInContainer, error) {
network *dockertest.Network,
) (*HeadscaleInContainer, error) {
hash, err := headscale.GenerateRandomStringDNSSafe(hsicHashLength)
if err != nil {
return nil, err