style: make lint-fix everything (#15631)
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
d9e04c56c6
commit
b009a75eea
@@ -657,11 +657,11 @@ func TestRejectUnknownFieldsFlat(t *testing.T) {
|
||||
func TestPackedEncoding(t *testing.T) {
|
||||
data := &testpb.TestRepeatedUints{Nums: []uint64{12, 13}}
|
||||
|
||||
marshalled, err := proto.Marshal(data)
|
||||
marshaled, err := proto.Marshal(data)
|
||||
require.NoError(t, err)
|
||||
|
||||
unmarshalled := data.ProtoReflect().Descriptor()
|
||||
_, err = decode.RejectUnknownFields(marshalled, unmarshalled, false, ProtoResolver)
|
||||
_, err = decode.RejectUnknownFields(marshaled, unmarshalled, false, ProtoResolver)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ func (vr intValueRenderer) Parse(_ context.Context, screens []Screen) (protorefl
|
||||
if err != nil {
|
||||
return nilValue, err
|
||||
}
|
||||
return protoreflect.ValueOfUint32(uint32(value)), nil //nolint:gosec
|
||||
return protoreflect.ValueOfUint32(uint32(value)), nil
|
||||
|
||||
case protoreflect.Uint64Kind:
|
||||
value, err := strconv.ParseUint(parsedInt, 10, 64)
|
||||
@@ -60,7 +60,7 @@ func (vr intValueRenderer) Parse(_ context.Context, screens []Screen) (protorefl
|
||||
if err != nil {
|
||||
return nilValue, err
|
||||
}
|
||||
return protoreflect.ValueOfInt32(int32(value)), nil //nolint:gosec
|
||||
return protoreflect.ValueOfInt32(int32(value)), nil
|
||||
|
||||
case protoreflect.Int64Kind:
|
||||
value, err := strconv.ParseInt(parsedInt, 10, 64)
|
||||
|
||||
Reference in New Issue
Block a user