mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-06-27 10:15:33 +02:00
merkletree: use non-pointer receiver for MarshalJSON
This commit is contained in:
parent
ec5c63cf1a
commit
70e05ea7b0
@ -85,7 +85,7 @@ func (tree *CollapsedTree) Size() uint64 {
|
|||||||
return tree.size
|
return tree.size
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tree *CollapsedTree) MarshalJSON() ([]byte, error) {
|
func (tree CollapsedTree) MarshalJSON() ([]byte, error) {
|
||||||
return json.Marshal(map[string]interface{}{
|
return json.Marshal(map[string]interface{}{
|
||||||
"nodes": tree.nodes,
|
"nodes": tree.nodes,
|
||||||
"size": tree.size,
|
"size": tree.size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user