We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f33985b commit a809299Copy full SHA for a809299
1 file changed
src/main/java/io/weaviate/client6/v1/api/Config.java
@@ -192,13 +192,9 @@ private static boolean isWeaviateDomain(String host) {
192
lower.contains("weaviate.cloud");
193
}
194
195
- private static String getVersion() {
196
- return "weaviate-client-java/"
197
- + ((BuildInfo.TAGS != null && !BuildInfo.TAGS.isBlank() && !BuildInfo.TAGS.equals("null")) ? BuildInfo.TAGS
198
- : (BuildInfo.BRANCH + "-" + BuildInfo.COMMIT_ID_ABBREV));
199
- }
200
-
201
- private static final String VERSION = getVersion();
+ private static final String VERSION = "weaviate-client-java/"
+ + ((!BuildInfo.TAGS.isBlank() && BuildInfo.TAGS != "unknown") ? BuildInfo.TAGS
+ : (BuildInfo.BRANCH + "-" + BuildInfo.COMMIT_ID_ABBREV));
202
203
@Override
204
public Config build() {
0 commit comments