@@ -100,7 +100,7 @@ type AtomConnector struct {
100100
101101func CaptureBoomiDetails (endpoint string , timestamp string , pid int ) {
102102 // get Boomi details from the config
103- boomiURL := BoomiURL //config.GlobalConfig.BoomiUrl
103+ boomiURL := BoomiURL // config.GlobalConfig.BoomiUrl
104104 if boomiURL == "" {
105105 logger .Log ("Boomi server URL is missing. It is mandatory." )
106106 return
@@ -204,7 +204,7 @@ func fetchBoomiExecutionRecords(boomiUserName, boomiPassword, boomiURL string) (
204204
205205 logger .Log ("Length of Boomi queryResult.Result->%d" , len (queryResult .Result ))
206206
207- if len (queryResult .Result ) < = 0 {
207+ if len (queryResult .Result ) = = 0 {
208208 return records , nil
209209 }
210210
@@ -254,7 +254,7 @@ func fetchAtomConnectorDetails(boomiUserName, boomiPassword, boomiURL string) ([
254254 return records , fmt .Errorf ("error unmarshalling Boomi response as JSON: %w" , jsonErr )
255255 }
256256 logger .Log ("Length of Boomi queryResult.Result->%d" , len (queryResult .Result ))
257- if len (queryResult .Result ) < = 0 {
257+ if len (queryResult .Result ) = = 0 {
258258 return records , nil
259259 }
260260
@@ -439,7 +439,7 @@ func (b *BoomiExecutionOutput) WriteAtomQueryDetails(atomQueryResult AtomQueryRe
439439 if err != nil {
440440 return fmt .Errorf ("error while writing boomi execution output: %w" , err )
441441 }
442- //break
442+ // break
443443 } else {
444444 boomiData := fmt .Sprintf ("%s,%s,%s,%s,%s,%s,%s,%d,%s,%s\n " , atomQuery .Type , atomQuery .Name , atomQuery .Status , atomQuery .AtomType , atomQuery .HostName , atomQuery .DateInstalled , atomQuery .CurrentVersion , atomQuery .ForceRestartTime , atomQuery .ID , "N" )
445445 _ , err := b .file .WriteString (boomiData )
@@ -526,7 +526,7 @@ func makeBoomiRequest(queryToken string, username string, password string, boomi
526526 }
527527
528528 // Print the body content
529- //fmt.Printf("Request Body: %s\n", string(bodyBytes))
529+ // fmt.Printf("Request Body: %s\n", string(bodyBytes))
530530
531531 // Reset the request body
532532 req .Body = io .NopCloser (bytes .NewReader (bodyBytes ))
@@ -639,7 +639,7 @@ func makeAtomConnectorsRequest(queryToken string, username string, password stri
639639 }
640640
641641 // Print the body content
642- //fmt.Printf("Request Body: %s\n", string(bodyBytes))
642+ // fmt.Printf("Request Body: %s\n", string(bodyBytes))
643643
644644 // Reset the request body
645645 req .Body = io .NopCloser (bytes .NewReader (bodyBytes ))
@@ -722,7 +722,7 @@ func getAtomQueryDetails(accountID string, username string, password string) Ato
722722 return atomQueryResult
723723 }
724724
725- //logger.Log("Atom Query details Result %v", atomQueryResult)
725+ // logger.Log("Atom Query details Result %v", atomQueryResult)
726726
727727 return atomQueryResult
728728}
0 commit comments