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:
Kristoffer Dalby authored and Kristoffer Dalby committed 2026-08-25 21:59:00 +02:00
1 parent 2b64b9fe3a
commit 2c76d5c5b7
29 files changed
+195 -218

No files matched your search

+1 -1
View File
@@ -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")
}
})