From fccff9b1fbaa607f5520f471ac2b90bb94156dd6 Mon Sep 17 00:00:00 2001 From: Erik Foris Date: Wed, 27 Mar 2024 15:54:56 +0100 Subject: [PATCH] fix go code --- cmd/kpimon.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/kpimon.go b/cmd/kpimon.go index dbbbd03..75f9301 100644 --- a/cmd/kpimon.go +++ b/cmd/kpimon.go @@ -24,11 +24,13 @@ func main() { println(responseDeRegisterString) time.Sleep(5 * time.Second) - - for true{ - response, err := registerXApp() + + for true { + registerXApp() } + response, err := registerXApp() + if err != nil { print("Error: " + err.Error()) }