mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Omit controls field from json if emtpy.
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
// EdgeMetadatas and Nodes respectively. Edges are directional, and embedded
|
||||
// in the Node struct.
|
||||
type Topology struct {
|
||||
Nodes // TODO(pb): remove Nodes intermediate type
|
||||
Controls
|
||||
Nodes `json:"nodes"`
|
||||
Controls `json:"controls,omitempty"`
|
||||
}
|
||||
|
||||
// MakeTopology gives you a Topology.
|
||||
|
||||
Reference in New Issue
Block a user