diff --git a/app/crawler/notes.sh b/app/crawler/notes.sh index 2e3780a..0644548 100644 --- a/app/crawler/notes.sh +++ b/app/crawler/notes.sh @@ -24,6 +24,9 @@ notes() ( _recurse_ids() { local prefix="$1" local json="$2" + if echo "$json" | jq .Branches | grep -q ^null$; then + return 0 + fi local b64lines="$(echo "$json" | jq -r '.Branches | keys[]' | base64)" if [ -z "$b64lines" ]; then return 0 diff --git a/spike/review/reinvent/ezmded/server/tree.go b/spike/review/reinvent/ezmded/server/tree.go index 4ec8c0f..d85f5f0 100644 --- a/spike/review/reinvent/ezmded/server/tree.go +++ b/spike/review/reinvent/ezmded/server/tree.go @@ -9,8 +9,8 @@ import ( ) type Branch struct { - Leaf Leaf `json:"Leaf,omitempty"` - Branches map[string]Branch `json:"Branches,omitempty"` + Leaf Leaf + Branches map[string]Branch } func (branch Branch) IsZero() bool {