mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-25 15:56:49 +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:
1 parent
2b64b9fe3a
commit
2c76d5c5b7
29 files changed
+195
-218
No files matched your search
@@ -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