Skip to content

Commit

Permalink
Indent for buf curl (#2131)
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed May 30, 2023
1 parent 0674e84 commit 4be1836
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions private/buf/bufcurl/invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ func (inv *invoker) handleResponse(data []byte, msg *dynamicpb.Message) error {
if err := protoencoding.NewWireUnmarshaler(inv.res).Unmarshal(data, msg); err != nil {
return err
}
// If we want to add a pretty-print option, we should perhaps make this a flag
// and use protoencoding.NewJSONMarshalerIndent
outputBytes, err := protoencoding.NewJSONMarshaler(inv.res).Marshal(msg)
outputBytes, err := protoencoding.NewJSONMarshalerIndent(inv.res).Marshal(msg)
if err != nil {
return err
}
Expand Down

0 comments on commit 4be1836

Please sign in to comment.