aboutsummaryrefslogtreecommitdiff
path: root/autotests/testolmaccount.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 /autotests/testolmaccount.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 'autotests/testolmaccount.cpp')
-rw-r--r--autotests/testolmaccount.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/autotests/testolmaccount.cpp b/autotests/testolmaccount.cpp
index 280705d0..a41af268 100644
--- a/autotests/testolmaccount.cpp
+++ b/autotests/testolmaccount.cpp
@@ -58,8 +58,7 @@ void TestOlmAccount::signatureValid()
QOlmUtility utility;
const auto identityKeys = olmAccount.identityKeys();
const auto ed25519Key = identityKeys.ed25519;
- const auto verify = utility.ed25519Verify(ed25519Key, message, signature);
- QVERIFY(verify.value_or(false));
+ QVERIFY(utility.ed25519Verify(ed25519Key, message, signature));
}
void TestOlmAccount::oneTimeKeysValid()