We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6804e13 commit 96580feCopy full SHA for 96580fe
src/main/java/org/influxdb/impl/InfluxDBImpl.java
@@ -71,7 +71,7 @@ public class InfluxDBImpl implements InfluxDB {
71
private final InetAddress hostAddress;
72
private final String username;
73
private final String password;
74
- private String version = "";
+ private String version;
75
private final Retrofit retrofit;
76
private final InfluxDBService influxDBService;
77
private BatchProcessor batchProcessor;
@@ -314,7 +314,7 @@ public Pong ping() {
314
315
@Override
316
public String version() {
317
- if (version == "") {
+ if (version == null) {
318
this.version = ping().getVersion();
319
}
320
return this.version;
0 commit comments