Skip to content
Snippets Groups Projects
Commit 44171400 authored by Alejandro Tjaarda's avatar Alejandro Tjaarda
Browse files

operator: fix indentation

parent 8720dfbe
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
...@@ -24,12 +24,12 @@ type VnetPortPayload struct { ...@@ -24,12 +24,12 @@ type VnetPortPayload struct {
func (c *InternalClient) beginSessionController() bool { func (c *InternalClient) beginSessionController() bool {
resp, err := c.Session.Get("/vnets/api/status") resp, err := c.Session.Get("/vnets/api/status")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
return false return false
} }
defer resp.Body.Close() defer resp.Body.Close()
// Check if the status code indicates success (HTTP 200 OK). // Check if the status code indicates success (HTTP 200 OK).
return resp.StatusCode == http.StatusOK return resp.StatusCode == http.StatusOK
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment