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
2026-08-25 07:20:06 +00:00
committed by Kristoffer Dalby
parent 2b64b9fe3a
commit 2c76d5c5b7
29 changed files with 195 additions and 218 deletions
+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")
}
})