Pārlūkot izejas kodu

Removed the extra newline char from the messages

Ken Cochrane 12 gadi atpakaļ
vecāks
revīzija
7ec6a311f8
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      auth/auth.go

+ 3 - 3
auth/auth.go

@@ -121,15 +121,15 @@ func Login(authConfig AuthConfig) (string, error) {
 				status = "Login Succeeded\n"
 				storeConfig = true
 			} else {
-				status = fmt.Sprintf("Login: %s\n", body)
+				status = fmt.Sprintf("Login: %s", body)
 				return "", errors.New(status)
 			}
 		} else {
-			status = fmt.Sprintf("Registration: %s\n", string(reqBody))
+			status = fmt.Sprintf("Registration: %s", string(reqBody))
 			return "", errors.New(status)
 		}
 	} else {
-		status = fmt.Sprintf("[%s] : %s \n", reqStatusCode, string(reqBody))
+		status = fmt.Sprintf("[%s] : %s", reqStatusCode, string(reqBody))
 		return "", errors.New(status)
 	}
 	if storeConfig {