Skip to content
Snippets Groups Projects
Commit ef078cdd authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Cleanup

parent 9b4515a8
Branches
Tags
No related merge requests found
......@@ -10,9 +10,7 @@ import (
"gitlab.imt-atlantique.fr/xaal/code/go/core/xaal"
)
var (
msgCnt int = 0
)
var msgCnt int = 0
func dumpMessage(msg *xaal.Message) {
msgCnt++
......@@ -42,11 +40,11 @@ func main() {
}
showMSG := func(msg *xaal.Message) {
if (*flagAliveFilter == true) && msg.IsAlive() {
if (*flagAliveFilter) && msg.IsAlive() {
return
}
// we have a target, we the source or the target, if no return
if target != nil && (msg.Source != *target && slices.Contains(msg.Targets, *target) == false) {
if target != nil && (msg.Source != *target && !slices.Contains(msg.Targets, *target)) {
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment