aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmaccount.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-25 21:37:49 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-25 21:37:49 +0200
commit5904a61c59f0eef00aef07ef998658fd791ff139 (patch)
tree58d3a367918d1516efeba2e4bff632f3b5f4e4a5 /lib/e2ee/qolmaccount.cpp
parent62f9e5b7d1227a85f80ae49abcb555e4fe4c52f0 (diff)
downloadlibquotient-5904a61c59f0eef00aef07ef998658fd791ff139.tar.gz
libquotient-5904a61c59f0eef00aef07ef998658fd791ff139.zip
QOlmUtility::ed25519Verify: just return bool
It's too easy to incorrectly test the previous return type.
Diffstat (limited to 'lib/e2ee/qolmaccount.cpp')
-rw-r--r--lib/e2ee/qolmaccount.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/e2ee/qolmaccount.cpp b/lib/e2ee/qolmaccount.cpp
index ccb191f4..1b04dae7 100644
--- a/lib/e2ee/qolmaccount.cpp
+++ b/lib/e2ee/qolmaccount.cpp
@@ -264,6 +264,5 @@ bool Quotient::ed25519VerifySignature(const QString& signingKey,
QByteArray signingKeyBuf = signingKey.toUtf8();
QOlmUtility utility;
auto signatureBuf = signature.toUtf8();
- return utility.ed25519Verify(signingKeyBuf, canonicalJson, signatureBuf)
- .value_or(false);
+ return utility.ed25519Verify(signingKeyBuf, canonicalJson, signatureBuf);
}