From 9a34f7d864ad0ac6d16951fff093d2cca6a66194 Mon Sep 17 00:00:00 2001 From: ccamel Date: Mon, 11 Mar 2024 16:25:46 +0100 Subject: [PATCH] style(logic): remove unnecessary non-nullable for Variables field Field Answer.Variables is a repeated non-nullable native type, so nullable=false has no effect. --- proto/logic/v1beta2/types.proto | 1 - x/logic/types/types.pb.go | 46 ++++++++++++++++----------------- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/proto/logic/v1beta2/types.proto b/proto/logic/v1beta2/types.proto index 9ad5f3b8..db43c5a5 100644 --- a/proto/logic/v1beta2/types.proto +++ b/proto/logic/v1beta2/types.proto @@ -41,7 +41,6 @@ message Answer { bool has_more = 2 [(gogoproto.moretags) = "yaml:\"has_more\",omitempty"]; // variables represent all the variables in the query. repeated string variables = 3 [ - (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"variables\",omitempty" ]; // results represent all the results of the query. diff --git a/x/logic/types/types.pb.go b/x/logic/types/types.pb.go index eb1d65eb..ff966932 100644 --- a/x/logic/types/types.pb.go +++ b/x/logic/types/types.pb.go @@ -206,33 +206,33 @@ func init() { func init() { proto.RegisterFile("logic/v1beta2/types.proto", fileDescriptor_f3c73c95465ca7a8) } var fileDescriptor_f3c73c95465ca7a8 = []byte{ - // 408 bytes of a gzipped FileDescriptorProto + // 407 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xb1, 0xae, 0xd3, 0x30, - 0x18, 0x85, 0xe3, 0xdb, 0x7b, 0x7b, 0x5b, 0xc3, 0x5d, 0x2c, 0x40, 0xb9, 0xb7, 0xc2, 0x8e, 0x82, - 0x84, 0x3a, 0xa0, 0x44, 0x94, 0x0e, 0x50, 0x09, 0x01, 0xd9, 0x19, 0x28, 0x1b, 0x0b, 0x4a, 0x8a, + 0x18, 0x85, 0xe3, 0xdb, 0x7b, 0x7b, 0x7b, 0x0d, 0x77, 0xb1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, 0xed, 0x5f, 0xb4, 0x93, 0x9b, 0x8d, 0x7f, 0x03, 0xd8, 0x7d, 0xb7, 0x90, 0xdf, 0xa8, + 0x40, 0x2f, 0x61, 0x6f, 0x1e, 0xcb, 0xcf, 0x39, 0x17, 0x54, 0x13, 0xe8, 0xd9, 0xf8, 0x4e, 0x8a, + 0x1d, 0x78, 0x3d, 0x8f, 0xe5, 0x7b, 0x2e, 0x28, 0x7a, 0x0d, 0x6f, 0x4e, 0x24, 0xa5, 0xdb, 0xf1, + 0x3a, 0xc7, 0xbe, 0x75, 0x45, 0xfa, 0x6d, 0xf2, 0xad, 0x65, 0xce, 0x06, 0xf4, 0x01, 0x5e, 0x0b, + 0xcd, 0x4c, 0xba, 0x97, 0xba, 0xed, 0xc3, 0xff, 0xda, 0x1a, 0xa2, 0x91, 0xd7, 0xf4, 0x74, 0x4d, + 0x6c, 0xe3, 0x69, 0x2d, 0xd4, 0x7c, 0x33, 0xdd, 0xa2, 0x37, 0xdb, 0x3d, 0x06, 0xbb, 0x3d, 0x06, + 0x7f, 0xf6, 0x18, 0x6c, 0x0e, 0xd8, 0xd9, 0x1d, 0xb0, 0xf3, 0xeb, 0x80, 0x9d, 0x4f, 0x4f, 0x52, + 0xa6, 0xe6, 0x65, 0x12, 0xcc, 0x78, 0x1e, 0xf2, 0xaf, 0xc5, 0x58, 0x3f, 0xbe, 0x84, 0xab, 0xd0, + 0x9c, 0xa4, 0x3e, 0xc5, 0xa4, 0xab, 0xcf, 0xec, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xde, + 0x54, 0x76, 0x34, 0xa8, 0x02, 0x00, 0x00, } func (m *Substitution) Marshal() (dAtA []byte, err error) {