Skip to content

Commit

Permalink
Omit empty Path when marshalling ProcedureReport to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Mar 20, 2024
1 parent 916f544 commit f7eb861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator/computation_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

type ProcedureReport struct {
Path string `json:"path"`
Path string `json:"path,omitempty"`
ComputationUsed uint64 `json:"computation"`
// To get the computation from the intensities map, see:
// https://github.com/onflow/flow-go/blob/master/fvm/meter/computation_meter.go#L32-L39
Expand Down

0 comments on commit f7eb861

Please sign in to comment.