aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src')
-rw-r--r--lang/cpp/src/key.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp
index 4638fd86..4b370207 100644
--- a/lang/cpp/src/key.cpp
+++ b/lang/cpp/src/key.cpp
@@ -362,10 +362,9 @@ void Key::update()
Error err;
auto newKey = ctx->key(primaryFingerprint(), err, true);
// Not secret so we get the information from the pubring.
- if (newKey.isNull())
- {
+ if (newKey.isNull()) {
newKey = ctx->key(primaryFingerprint(), err, false);
- }
+ }
delete ctx;
if (err) {
return;