change output if there was no events
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-24 10:55:24 +10:00
parent 97ea2be284
commit 0286861b43

View File

@@ -427,6 +427,11 @@ func main() {
} }
// Output final results in JSON // Output final results in JSON
j, _ := json.Marshal(combined) if len(combined) > 0 {
fmt.Println(string(j)) j, _ := json.Marshal(combined)
fmt.Println(string(j))
} else {
fmt.Println("{}")
}
} }