mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Return unknown version if project version is not available
This commit is contained in:
parent
f9ecaa8ad6
commit
c2801c447d
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ public class VersionCommand implements JsonRpcSingleCommand<Void>, JsonRpcMultiC
|
|||
}
|
||||
|
||||
private void outputVersion(final JsonWriter jsonWriter) {
|
||||
jsonWriter.write(Map.of("version", BaseConfig.PROJECT_VERSION));
|
||||
jsonWriter.write(Map.of("version",
|
||||
BaseConfig.PROJECT_VERSION == null ? "unknown" : BaseConfig.PROJECT_VERSION));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue