From 136e0cde0663f9c5e150a2175639d919b81aac1e Mon Sep 17 00:00:00 2001 From: wenxu12345 <44203734@qq.com> Date: Thu, 6 Jan 2022 15:24:57 +0800 Subject: [PATCH] Refactor code --- internal/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 8656534ee..73ebbf127 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -33,7 +33,7 @@ func ProtoToMap(pb proto.Message, idFix bool) map[string]interface{} { marshaler := jsonpb.Marshaler{ OrigName: true, EnumsAsInts: false, - EmitDefaults: true, + EmitDefaults: false, } s, _ := marshaler.MarshalToString(pb)