Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks authored and ebroberson committed Mar 6, 2024
1 parent 713f978 commit 65e3eca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions depot/containerstore/proxy_config_handler.go
Expand Up @@ -674,13 +674,13 @@ func writeDiscoveryResponseYAML(resourceMsg proto.Message, outPath string) error
resourceAny,
},
}
jsonMarshaler := protojson.Marshaler{OrigName: true, EmitDefaults: false}
fullJSON, err := jsonMarshaler.MarshalToString(dr)
jsonMarshaler := protojson.MarshalOptions{UseProtoNames: true, EmitDefaultValues: false}
fullJSON, err := jsonMarshaler.Marshal(dr)
if err != nil {
return err
}

yamlStr, err := ghodss_yaml.JSONToYAML([]byte(fullJSON))
yamlStr, err := ghodss_yaml.JSONToYAML(fullJSON)
if err != nil {
return err
}
Expand Down

0 comments on commit 65e3eca

Please sign in to comment.