Skip to content

Commit f2c972e

Browse files
author
Alex Gaetano Padula
committed
connected message should be inside block if starts with equals 0 after auth
1 parent 0735d40 commit f2c972e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cursusdb.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,11 @@ void Connect() throws IOException {
9595
String clusterResponse = reader.readLine();
9696

9797
if (clusterResponse.startsWith("0")) {
98-
98+
System.out.println("Connected to cluster.");
9999
} else {
100100
throw new InvalidAuthenticationException("Could not authenticate to cluster");
101101
}
102102

103-
104-
System.out.println("Connected to cluster.");
105-
106103
}
107104

108105
void Close() throws IOException {

0 commit comments

Comments
 (0)