Don't check whether specification version is null

We log specification version anyway
This commit is contained in:
Ilya Fedin 2024-03-10 02:00:52 +04:00 committed by John Preston
parent 0ec5181566
commit dba9cada83

View file

@ -119,17 +119,11 @@ void StartServiceAsync(Gio::DBusConnection connection, Fn<void()> callback) {
std::string GetImageKey() { std::string GetImageKey() {
const auto &specVersion = CurrentServerInformation.specVersion; const auto &specVersion = CurrentServerInformation.specVersion;
if (specVersion.isNull()) {
LOG(("Native Notification Error: specification version is null"));
return {};
}
if (specVersion >= QVersionNumber(1, 2)) { if (specVersion >= QVersionNumber(1, 2)) {
return "image-data"; return "image-data";
} else if (specVersion == QVersionNumber(1, 1)) { } else if (specVersion == QVersionNumber(1, 1)) {
return "image_data"; return "image_data";
} }
return "icon_data"; return "icon_data";
} }