diff --git a/buf.gen.yaml b/buf.gen.yaml index d35618e9..3901375e 100755 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -18,7 +18,7 @@ plugins: out: proto/ opt: - paths=source_relative - - plugin: buf.build/bufbuild/validate-go:v1.0.4 + - plugin: buf.build/bufbuild/validate-go:v1.3.0 out: proto/ opt: - paths=source_relative diff --git a/proto/authzen/v1/authzen_service.pb.validate.go b/proto/authzen/v1/authzen_service.pb.validate.go index 55591154..3d3919d5 100644 --- a/proto/authzen/v1/authzen_service.pb.validate.go +++ b/proto/authzen/v1/authzen_service.pb.validate.go @@ -235,7 +235,7 @@ type EvaluationRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EvaluationRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -471,7 +471,7 @@ type EvaluationsItemRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EvaluationsItemRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -626,7 +626,7 @@ type SubjectMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m SubjectMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -778,7 +778,7 @@ type SubjectFilterMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m SubjectFilterMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -934,7 +934,7 @@ type ResourceMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ResourceMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1086,7 +1086,7 @@ type ResourceFilterMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ResourceFilterMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1230,7 +1230,7 @@ type ActionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ActionMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1367,7 +1367,7 @@ type EvaluationResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EvaluationResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1675,7 +1675,7 @@ type EvaluationsRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EvaluationsRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1813,7 +1813,7 @@ type EvaluationsResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EvaluationsResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1926,7 +1926,7 @@ type EvaluationsOptionsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EvaluationsOptionsMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2046,7 +2046,7 @@ type PageRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m PageRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2153,7 +2153,7 @@ type PageResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m PageResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2446,7 +2446,7 @@ type SubjectSearchRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m SubjectSearchRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2617,7 +2617,7 @@ type SubjectSearchResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m SubjectSearchResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2912,7 +2912,7 @@ type ResourceSearchRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ResourceSearchRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3083,7 +3083,7 @@ type ResourceSearchResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ResourceSearchResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3338,7 +3338,7 @@ type ActionSearchRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ActionSearchRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3509,7 +3509,7 @@ type ActionSearchResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ActionSearchResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3622,7 +3622,7 @@ type GetConfigurationRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GetConfigurationRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3742,7 +3742,7 @@ type GetConfigurationResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GetConfigurationResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } diff --git a/proto/go.mod b/proto/go.mod index 3cf367bb..1908b8a1 100644 --- a/proto/go.mod +++ b/proto/go.mod @@ -1,18 +1,20 @@ module github.com/openfga/api/proto -go 1.23.0 +go 1.25 + +toolchain go1.26.1 require ( - github.com/envoyproxy/protoc-gen-validate v1.0.4 + github.com/envoyproxy/protoc-gen-validate v1.3.0 github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 - google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 - google.golang.org/grpc v1.64.1 - google.golang.org/protobuf v1.34.1 + google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 + google.golang.org/grpc v1.79.3 + google.golang.org/protobuf v1.36.10 ) require ( - golang.org/x/net v0.38.0 // indirect - golang.org/x/sys v0.31.0 // indirect - golang.org/x/text v0.23.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect + golang.org/x/net v0.48.0 // indirect + golang.org/x/sys v0.39.0 // indirect + golang.org/x/text v0.32.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect ) diff --git a/proto/go.sum b/proto/go.sum index 4a0095ac..978e255c 100644 --- a/proto/go.sum +++ b/proto/go.sum @@ -1,20 +1,44 @@ -github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= -github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/envoyproxy/protoc-gen-validate v1.3.0 h1:TvGH1wof4H33rezVKWSpqKz5NXWg5VPuZ0uONDT6eb4= +github.com/envoyproxy/protoc-gen-validate v1.3.0/go.mod h1:HvYl7zwPa5mffgyeTUHA9zHIH36nmrm7oCbo4YKoSWA= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM= -golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= -golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= -golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= -google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 h1:7whR9kGa5LUwFtpLm2ArCEejtnxlGeLbAyjFY8sGNFw= -google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157/go.mod h1:99sLkeliLXfdj2J75X3Ho+rrVCaJze0uwN7zDDkjPVU= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 h1:Zy9XzmMEflZ/MAaA7vNcoebnRAld7FsPW1EeBB7V0m8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= -google.golang.org/grpc v1.64.1 h1:LKtvyfbX3UGVPFcGqJ9ItpVWW6oN/2XqTxfAnwRRXiA= -google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0= -google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= -google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= +go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= +go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= +go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= +go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= +go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= +go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= +go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= +go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= +go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= +golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= +golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= +golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= +golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 h1:fCvbg86sFXwdrl5LgVcTEvNC+2txB5mgROGmRL5mrls= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:+rXWjjaukWZun3mLfjmVnQi18E1AsFbDN9QdJ5YXLto= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= +google.golang.org/grpc v1.79.3 h1:sybAEdRIEtvcD68Gx7dmnwjZKlyfuc61Dyo9pGXXkKE= +google.golang.org/grpc v1.79.3/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ= +google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE= +google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= diff --git a/proto/openfga/v1/authzmodel.pb.validate.go b/proto/openfga/v1/authzmodel.pb.validate.go index 32afcf5a..701c0612 100644 --- a/proto/openfga/v1/authzmodel.pb.validate.go +++ b/proto/openfga/v1/authzmodel.pb.validate.go @@ -193,7 +193,7 @@ type AuthorizationModelMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m AuthorizationModelMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -396,7 +396,7 @@ type TypeDefinitionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TypeDefinitionMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -579,7 +579,7 @@ type RelationMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RelationMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -715,7 +715,7 @@ type RelationTypeInfoMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RelationTypeInfoMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -904,7 +904,7 @@ type MetadataMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MetadataMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1020,7 +1020,7 @@ type SourceInfoMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m SourceInfoMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1200,7 +1200,7 @@ type RelationMetadataMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RelationMetadataMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1401,7 +1401,7 @@ type RelationReferenceMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RelationReferenceMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1508,7 +1508,7 @@ type WildcardMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WildcardMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1641,7 +1641,7 @@ type UsersetsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetsMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1820,7 +1820,7 @@ type DifferenceMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m DifferenceMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2169,7 +2169,7 @@ type UsersetMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2269,7 +2269,7 @@ type DirectUsersetMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m DirectUsersetMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2391,7 +2391,7 @@ type ObjectRelationMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ObjectRelationMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2502,7 +2502,7 @@ type ComputedUsersetMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ComputedUsersetMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2682,7 +2682,7 @@ type TupleToUsersetMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TupleToUsersetMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2898,7 +2898,7 @@ type ConditionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ConditionMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3046,7 +3046,7 @@ type ConditionMetadataMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ConditionMetadataMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3206,7 +3206,7 @@ type ConditionParamTypeRefMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ConditionParamTypeRefMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } diff --git a/proto/openfga/v1/errors_ignore.pb.validate.go b/proto/openfga/v1/errors_ignore.pb.validate.go index 6382d5c7..ad495afe 100644 --- a/proto/openfga/v1/errors_ignore.pb.validate.go +++ b/proto/openfga/v1/errors_ignore.pb.validate.go @@ -75,7 +75,7 @@ type ValidationErrorMessageResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ValidationErrorMessageResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -182,7 +182,7 @@ type UnauthenticatedResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UnauthenticatedResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -290,7 +290,7 @@ type UnprocessableContentMessageResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UnprocessableContentMessageResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -397,7 +397,7 @@ type InternalErrorMessageResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m InternalErrorMessageResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -504,7 +504,7 @@ type PathUnknownErrorMessageResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m PathUnknownErrorMessageResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -611,7 +611,7 @@ type AbortedMessageResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m AbortedMessageResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -713,7 +713,7 @@ type ErrorMessageRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ErrorMessageRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -819,7 +819,7 @@ type ForbiddenResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ForbiddenResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } diff --git a/proto/openfga/v1/openfga.pb.validate.go b/proto/openfga/v1/openfga.pb.validate.go index 3ee949a4..74b57632 100644 --- a/proto/openfga/v1/openfga.pb.validate.go +++ b/proto/openfga/v1/openfga.pb.validate.go @@ -91,7 +91,7 @@ type ObjectMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ObjectMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -321,7 +321,7 @@ type UserMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UserMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -457,7 +457,7 @@ type UsersetUserMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetUserMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -603,7 +603,7 @@ type RelationshipConditionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RelationshipConditionMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -748,7 +748,7 @@ type TupleKeyWithoutConditionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TupleKeyWithoutConditionMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -865,7 +865,7 @@ type TypedWildcardMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TypedWildcardMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1036,7 +1036,7 @@ type TupleKeyMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TupleKeyMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1207,7 +1207,7 @@ type TupleMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TupleMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1351,7 +1351,7 @@ type TupleKeysMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TupleKeysMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1496,7 +1496,7 @@ type ContextualTupleKeysMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ContextualTupleKeysMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1626,7 +1626,7 @@ type UsersetTreeMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTreeMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1805,7 +1805,7 @@ type TupleChangeMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TupleChangeMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1990,7 +1990,7 @@ type StoreMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m StoreMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2116,7 +2116,7 @@ type UserTypeFilterMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UserTypeFilterMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2348,7 +2348,7 @@ type UsersetTree_LeafMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTree_LeafMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2482,7 +2482,7 @@ type UsersetTree_NodesMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTree_NodesMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2584,7 +2584,7 @@ type UsersetTree_UsersMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTree_UsersMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2686,7 +2686,7 @@ type UsersetTree_ComputedMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTree_ComputedMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2822,7 +2822,7 @@ type UsersetTree_TupleToUsersetMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTree_TupleToUsersetMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3004,7 +3004,7 @@ type UsersetTree_DifferenceMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTree_DifferenceMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3277,7 +3277,7 @@ type UsersetTree_NodeMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UsersetTree_NodeMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } diff --git a/proto/openfga/v1/openfga_service.pb.validate.go b/proto/openfga/v1/openfga_service.pb.validate.go index 4618b031..afaf2e5e 100644 --- a/proto/openfga/v1/openfga_service.pb.validate.go +++ b/proto/openfga/v1/openfga_service.pb.validate.go @@ -199,7 +199,7 @@ type ListObjectsRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ListObjectsRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -309,7 +309,7 @@ type ListObjectsResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ListObjectsResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -618,7 +618,7 @@ type ListUsersRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ListUsersRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -758,7 +758,7 @@ type ListUsersResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ListUsersResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -988,7 +988,7 @@ type StreamedListObjectsRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m StreamedListObjectsRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1100,7 +1100,7 @@ type StreamedListObjectsResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m StreamedListObjectsResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1290,7 +1290,7 @@ type ReadRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1450,7 +1450,7 @@ type ReadRequestTupleKeyMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadRequestTupleKeyMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1613,7 +1613,7 @@ type ReadResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1762,7 +1762,7 @@ type WriteRequestWritesMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteRequestWritesMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -1911,7 +1911,7 @@ type WriteRequestDeletesMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteRequestDeletesMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2096,7 +2096,7 @@ type WriteRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2200,7 +2200,7 @@ type WriteResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2436,7 +2436,7 @@ type CheckRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CheckRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2573,7 +2573,7 @@ type CheckRequestTupleKeyMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CheckRequestTupleKeyMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2685,7 +2685,7 @@ type CheckResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CheckResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -2867,7 +2867,7 @@ type BatchCheckRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m BatchCheckRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3082,7 +3082,7 @@ type BatchCheckItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m BatchCheckItemMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3230,7 +3230,7 @@ type BatchCheckResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m BatchCheckResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3390,7 +3390,7 @@ type BatchCheckSingleResultMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m BatchCheckSingleResultMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3522,7 +3522,7 @@ type CheckErrorMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CheckErrorMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3728,7 +3728,7 @@ type ExpandRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ExpandRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3862,7 +3862,7 @@ type ExpandRequestTupleKeyMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ExpandRequestTupleKeyMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -3997,7 +3997,7 @@ type ExpandResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ExpandResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -4119,7 +4119,7 @@ type ReadAuthorizationModelRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadAuthorizationModelRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -4255,7 +4255,7 @@ type ReadAuthorizationModelResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadAuthorizationModelResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -4491,7 +4491,7 @@ type WriteAuthorizationModelRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteAuthorizationModelRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -4615,7 +4615,7 @@ type WriteAuthorizationModelResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteAuthorizationModelResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -4768,7 +4768,7 @@ type ReadAuthorizationModelsRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadAuthorizationModelsRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -4931,7 +4931,7 @@ type ReadAuthorizationModelsResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadAuthorizationModelsResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -5103,7 +5103,7 @@ type WriteAssertionsRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteAssertionsRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -5209,7 +5209,7 @@ type WriteAssertionsResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m WriteAssertionsResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -5333,7 +5333,7 @@ type ReadAssertionsRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadAssertionsRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -5484,7 +5484,7 @@ type ReadAssertionsResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadAssertionsResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -5681,7 +5681,7 @@ type ReadChangesRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadChangesRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -5845,7 +5845,7 @@ type ReadChangesResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ReadChangesResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -5960,7 +5960,7 @@ type CreateStoreRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CreateStoreRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -6126,7 +6126,7 @@ type CreateStoreResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CreateStoreResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -6250,7 +6250,7 @@ type UpdateStoreRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UpdateStoreRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -6418,7 +6418,7 @@ type UpdateStoreResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UpdateStoreResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -6531,7 +6531,7 @@ type DeleteStoreRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m DeleteStoreRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -6635,7 +6635,7 @@ type DeleteStoreResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m DeleteStoreResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -6748,7 +6748,7 @@ type GetStoreRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GetStoreRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -6941,7 +6941,7 @@ type GetStoreResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GetStoreResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -7093,7 +7093,7 @@ type ListStoresRequestMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ListStoresRequestMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -7255,7 +7255,7 @@ type ListStoresResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ListStoresResponseMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -7392,7 +7392,7 @@ type AssertionTupleKeyMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m AssertionTupleKeyMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -7615,7 +7615,7 @@ type AssertionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m AssertionMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) } @@ -7748,7 +7748,7 @@ type AssertionsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m AssertionsMultiError) Error() string { - var msgs []string + msgs := make([]string, 0, len(m)) for _, err := range m { msgs = append(msgs, err.Error()) }