mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-10 02:31:59 +09:00
all: apply golangci-lint autofixes
Go 1.27 allows setting promoted fields of embedded structs directly in composite literals, so gorm.Model wrappers go away. Plus strings.Cut, errors.AsType, reflect.TypeAssert and one gofumpt nit.
This commit is contained in:
committed by
Kristoffer Dalby
parent
2b64b9fe3a
commit
2c76d5c5b7
@@ -324,7 +324,7 @@ func TestACLHostsInNetMapTable(t *testing.T) {
|
||||
|
||||
user := status.User[status.Self.UserID].LoginName
|
||||
|
||||
assert.Len(c, status.Peer, (testCase.want[user]))
|
||||
assert.Len(c, status.Peer, testCase.want[user])
|
||||
}, integrationutil.ScaledTimeout(10*time.Second), integrationutil.FastPoll, "Waiting for expected peer visibility")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user