Fix formatting

Signed-off-by: eschcam <cameron.scholes@est.tech>
pull/11610/head
eschcam 3 years ago
parent a2e7eeb375
commit 632df1470c

@ -207,7 +207,7 @@ func (c *Client) Login(host string, options ...LoginOption) error {
return nil return nil
} }
func checkHostExists(host string) (bool, error){ func checkHostExists(host string) (bool, error) {
//Check if host exists //Check if host exists
if !strings.HasPrefix(host, "https://") && !strings.HasPrefix(host, "http://") { if !strings.HasPrefix(host, "https://") && !strings.HasPrefix(host, "http://") {
host = "https://" + host host = "https://" + host
@ -215,7 +215,7 @@ func checkHostExists(host string) (bool, error){
resp, err := http.Get(host) resp, err := http.Get(host)
if err != nil || resp == nil{ if err != nil || resp == nil {
log.Fatalf("Failed to get response from host. Error: %v", err.Error()) log.Fatalf("Failed to get response from host. Error: %v", err.Error())
return false, err return false, err
} }

Loading…
Cancel
Save