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

Cleanup

parent 9b4515a8
No related branches found
No related tags found
Loading
...@@ -10,9 +10,7 @@ import ( ...@@ -10,9 +10,7 @@ import (
"gitlab.imt-atlantique.fr/xaal/code/go/core/xaal" "gitlab.imt-atlantique.fr/xaal/code/go/core/xaal"
) )
var ( var msgCnt int = 0
msgCnt int = 0
)
func dumpMessage(msg *xaal.Message) { func dumpMessage(msg *xaal.Message) {
msgCnt++ msgCnt++
...@@ -42,11 +40,11 @@ func main() { ...@@ -42,11 +40,11 @@ func main() {
} }
showMSG := func(msg *xaal.Message) { showMSG := func(msg *xaal.Message) {
if (*flagAliveFilter == true) && msg.IsAlive() { if (*flagAliveFilter) && msg.IsAlive() {
return return
} }
// we have a target, we the source or the target, if no 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 return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment